pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new string[128];new pname[MAX_PLAYER_NAME];GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
if (strcmp("/drift", cmdtext, true, 5) == 0)
{
SetPlayerPos(playerid, -2402.4824,-595.0882,132.6484);
format(string, sizeof(string), "(id:%d)%s foi para a Drift( /drift)", pname);
return 1;
}
if (strcmp("/drift1", cmdtext, true, 5) == 0)
{
SetPlayerPos(playerid, -2402.4824,-595.0882,132.6484);
format(string, sizeof(string), "(id:%d)%s foi para a Drift-1 ( /drift1 )", pname);
return 1;
}
return 0;
}