Top postatori
JokEr*StaR (58)
 
k1d (28)
 
silviu (26)
 
AxeL (25)
 
LoV3rU (20)
 
PoiZone (20)
 
Kta (15)
 
reynder (12)
 
oYeah;x (9)
 
alessandro12 (8)
 

Septembrie 2018
LunMarMierJoiVinSamDum
     12
3456789
10111213141516
17181920212223
24252627282930

Calendar Calendar


[SA-MP]/setskin admin command

In jos

[SA-MP]/setskin admin command

Mesaj  JokEr*StaR la data de Vin Sept 03, 2010 2:52 pm

In timp ce cautam cate ceva pentru un server de sa-mp am dat peste acest code care le da voie adminilor sa foloseasca /setskin [id] [skinid]

Acest code il puneti in pawno in gamemode sau faceti un fs cu el:
Cod:
//----------------------------[Set Skin]----------------------------------------
if(strcmp(cmd, "/setskin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new tmp2[256];
tmp = strtok(cmdtext, idx);
new otherplayer = strval(tmp);
tmp2 = strtok(cmdtext, idx);
new skin = strval(tmp2);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [id] [idskin]");
return 1;
}
if(!strlen(tmp2))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setskin [id] [idskin]");
return 1;
}
SetPlayerSkin(otherplayer, skin);
SendClientMessage(otherplayer, COLOR_YELLOW, "An admin changed your skin.");
new amsg[256];
GetPlayerName(playerid, playername, sizeof(playername));
format(amsg, sizeof(amsg), "%s changed the skin of .", playername);

}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not admin !");
return 1;
}
}
return 1;
}


Good Luck ! Wink

avatar
JokEr*StaR
Level 1
Level 1

Mesaje : 58
Data de inscriere : 03/09/2010
Varsta : 23
Localizare : Pe 4everzone!!!:)

Vezi profilul utilizatorului

Sus In jos

Sus

- Subiecte similare

 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum