29.06.2012, 19:10
pawn Код:
if(strcmp(cmdtext, "/work", true) == 0)
{
if(gTeam[playerid] != 2)
return SendClientMessage(playerid, COLOR_GREY, "You're not the carrier");
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 440)
{
if(gTeam[playerid] == 2)
SendClientMessage(playerid, COLOR_GREY, "You've started the job, go and pick up the goods");
Ccp[playerid] = 1;
SetPlayerCheckpoint(playerid,120.403518, -294.375122, 1.578125, 3.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not in the truck!");
}
return 1;
}