29.06.2012, 19:06
Need small help to correct this, because it seems like it's working fine, but actually
it doesn't work fine.
it doesn't work fine.
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;
}
return 1;
}