hay leute
also ich bin gerade beim scripten und mein Problem ist das meine skins nicht angezeigt werden
beim
-makeleader
-restarten
-connecten
usw
her ma mein code
//mein skin abspeicherung
// OnPlayerSpawn(playerid)
SkinLoad(playerid);
forward SkinLoad(playerid);
public SkinLoad(playerid)
{
new accFormat[128];
SetPlayerSkin(playerid,dini_Int(accFormat,"skin"));
return 1;
}
SetPlayerSkin(playerid,dini_Int(Spielerdatei,"Skin"));
dini_IntSet(Spielerdatei,"Skin",GetPlayerSkin(playerid));
ocmd:makeleader(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,5))return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin oder hast nicht den nötigen rang.");
new pID,fID,frak[50],string2[128],string[128];
if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,COLOR_BLUE,"/makeleader [playerid] [fraktionsid]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid,COLOR_BLUE,"Spieler ist nicht Online");
if(fID<0||fID>20)return SendClientMessage(playerid,COLOR_BLUE,"Fraktionen von 1-20");
Spieler[pID][Fraktion]=fID;
Spieler[pID][Frak_Rang]=3;
Spieler[pID][Leader]=1;
SpawnPlayer(pID);
switch(fID)
{
case 0:{frak = "Zivilist";}
case 1:{frak = "Los Santos Police Department",SetPlayerSkin(playerid,281);}
case 2:{frak = "San Fierro Police Department",SetPlayerSkin(playerid,281);}
case 3:{frak = "Bundeswehr",SetPlayerSkin(playerid,287);}
case 4:{frak = "FBI";SetPlayerSkin(playerid,285);}
case 5:{frak = "Fahrschule";SetPlayerSkin(playerid,171);}
case 6:{frak = "Ordnungsamt";SetPlayerSkin(playerid,71);}
case 7:{frak = "Sanitäter";SetPlayerSkin(playerid,70);}
case 8:{frak = "Präsident";SetPlayerSkin(playerid,166);}
case 9:{frak = "Taxi Los Santos";SetPlayerSkin(playerid,189);}
case 10:{frak = "Radiosender";SetPlayerSkin(playerid,57);}
case 11:{frak = "Feuerwehr";SetPlayerSkin(playerid,277);}
case 12:{frak = "Ballas";SetPlayerSkin(playerid,120);}
case 13:{frak = "Russische Mafia";SetPlayerSkin(playerid,223);}
case 14:{frak = "Yakuza";SetPlayerSkin(playerid,122);}
case 15:{frak = "Hitman";SetPlayerSkin(playerid,294);}
case 16:{frak = "Grove Street";SetPlayerSkin(playerid,105);}
case 17:{frak = "Varrios Aztecas";SetPlayerSkin(playerid,115);}
case 18:{frak = "Rifas";SetPlayerSkin(playerid,114);}
case 19:{frak = "Terroristen";SetPlayerSkin(playerid,221);}
case 20:{frak = "La Cosa Nostra";SetPlayerSkin(playerid,113);}
}
format(string,sizeof(string),"Du hast %s zum Leader der Fraktion %s gemacht.",SpielerName(pID),frak);
format(string2,sizeof(string2),"Du wurdest von %s zum Leader der Fraktion %s gemacht.",SpielerName(playerid),frak);
SendClientMessage(playerid,LIGHTBLUE,string);
SendClientMessage(pID,LIGHTBLUE,string2);
return 1;
}
MFG
Be_Go