05.02.2014, 09:50
pawn Код:
if (!strcmp(cmdtext, "/joinrace", true, 9))
{
if (joined[playerid]) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You already joined the race!");
if (IsPlayerInStreamedCheckpoint(playerid,Cp1) && IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"You joined the race!");
SetVehiclePos(GetPlayerVehicleID(playerid), 2466.4861,-1661.6304,12.8521);
SetPlayerFacingAngle(playerid, 0);
++racers;
joined[playerid] = true;
}
else SendClientMessage(playerid,COLOR_LIGHTBLUE,"You must be at the cp to do that!");
return 1;
}