29.11.2011, 23:44
pawn Код:
new cmd[50 char], params[100 char];// no inicio da public commandtext
unformat(cmdtext, "s[50]S( )[100]",cmd,params);//no inicio da public commandtext
pawn Код:
if(strcmp(cmd, "/irpara", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] == 5000)
{
new Float:pos[3];
if(sscanf(params, "fff", pos[0], pos[1], pos[2]) return SendClientMessage(playerid, -1, "USO: /irpara [X] [Y] [Z]");
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
}
return 1;
}