20.11.2011, 19:40
Setarskin para uma profissao
e setplayerpos
e setplayerpos
SetPlayerPos(playerid, coordenada: x, coordenada: y, coordenada: z);
SetPlayerSkin(playerid, id da skin);
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;
}
public OnPlayerSpawn(playerid)
{
if(GettingEmprego[playerid] == 2)
{
SetPlayerPos(playerid, Float:x, Float:y, Float:z); // Altere as floats com seus valores e coloque as cordenadas
SetPlayerSkin(playerid, 230); // Vocк edita o '230' pelo id do skin que quer!
}
return 1;
}