20.03.2012, 19:45
Hi making my /startjob command using ZCMD. I don't get an error ingame and i made sure i have return 1; after each section. So here is the command:
pawn Код:
CMD:startjob(playerid, params[])
{
if(IsPlayerInVehicle(playerid, 414))
{
if(pJob[playerid] == TRUCKER)
{
SendClientMessage(playerid, COLOR_WHITE, ".:: You have started work ::.");
SendClientMessage(playerid, COLOR_GREEN, ".: Enter the checkpoint to start :.");
SetPlayerCheckpoint(playerid, -1580.2484,74.9872,3.5547, 3.0);
trucking[playerid] = 1;
return 1;
}
else SendClientMessage(playerid, COLOR_SYNTAX, ".:: You must be a trucker / in a truck to work in this vehicle ::.");
return 1;
}
return 1;
}