20.11.2011, 21:14
pawn Код:
SetPlayerPos(playerid, coordenada: x, coordenada: y, coordenada: z);
pawn Код:
SetPlayerSkin(playerid, id da skin);
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[50 char], params[100 char];
new msg[128], new id;
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
unformat(cmdtext, "s[50]S( )[100]",cmd,params);
if(strcmp(cmd, "/setskin", treu) == 0)
{
new skin;
if(sscanf(params, "ud", id, skin)) return SendClientMessage(playerid, -1, "USO: /setskin [Player ID] [skin]");
SetPlayerSkin(id, skin);
return 1;
}
return 0;
}