07.02.2010, 18:19
In command, all seems correct. Show your OnPlayerCommandText
Or, try this:
Or, try this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new idx;
new cmd[256];
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/fireduty", true) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "You are now a Firefighter");
SendClientMessage(playerid, COLOR_YELLOW, "You have no command at this time");
gTeam[playerid] = TEAM_FIRE;
SetPlayerColor(playerid, COLOR_RED);
SetPlayerPos(playerid, 1776.2158,2080.5100,10.8203);
GivePlayerWeapon(playerid, 9, 1);
GivePlayerWeapon(playerid, 42, 500);
SetPlayerSkin(playerid, 278);
return 1;
}
return 0;
}