15.12.2013, 22:52
Why is 'OnPlayerCommandText' not open and closed with a bracket, or you've forgotten to do add that?
pawn Код:
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 1;
}
//----------------
//**All Commands**
//----------------
//Mission Commands
CMD:work(playerid, params[])
{
if(!IsPlayerInDynamicCP(playerid, job_cp)) return SendClientMessage(playerid, -1, "You are not in the checkpoint!");
else
{
if( !isPlayerInMission[ playerid ] )
{
isPlayerInMission[ playerid ] = true; // he is now doing one
Player_SetUpForMission( playerid ); // stock coming in later, ignore
}
else
return SendClientMessage(playerid, -1, "You are already doing a mission.");
}
return 1;
}
//Player Commands
CMD:kill(playerid, params[])
{
SendClientMessage(playerid, red, "*You have killed yourself!");
SetPlayerHealth(playerid, 0);
return 1;
}