24.02.2011, 21:39
aqui para voce
Add isto ao final do gm
pawn Код:
if(strcmp("/skin", cmdtext, true, 5)==0){
if(IsPlayerAdmin(playerid)){
new skin[256];
skin = KcmD(1, cmdtext);
if(!strlen(skin)) return SendClientMessage(playerid,COR_AQUI,"Use: /skin [id da skin]");
SetPlayerSkin(playerid,strval(skin));
}else{
SendClientMessage(playerid,COR_AQUI,"Voce nao й admin");
return true;
}
return true;
}
pawn Код:
stock KcmD(param, cmdtext[])
{
new string[128], pos, var;
format(string, sizeof(string), "%s ", cmdtext);
while((pos = strfind(string, " ", true)) != -1)
{
if(var == param) return string;
var++;
strdel(string, 0, pos + 1);
if(strcmp(string, " ", true, pos) == 0) goto end;
}
end:
string[0] = '\0';
return string;
}