18.09.2012, 10:28
place the ZCMD commands Outside a Callbacks.
or it will not works
Edit: try this.
or it will not works
Edit: try this.
pawn Код:
CMD:quitjob(playerid,params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] >= 0)
{
if(PlayerInfo[playerid][pRegularRank] >= 0)
{
SendClientMessage(playerid, COLOR_WHITE, "You have quit a job!");
PlayerInfo[playerid][pJob] = 0;
PlayerInfo[playerid][pChar] = 0;
PlayerInfo[playerid][pContractTime] = 0;
SetPlayerToTeamColor(playerid);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You do not have a job!");
}
}
}
return 1;
}