05.07.2011, 21:54
pawn Код:
new Check; //Topo GM
pawn Код:
dcmd(irota, 5, cmdtext); //OnPlayerCommandText
pawn Код:
dcmd_irota(playerid, params[]) //Final GM
{
if(Prof[playerid] != Motorista) return SendClientMessage(playerid, -1, "[!] Vocк nгo й Motorista de Фnibus!");
Check = SetPlayerCheckpoint(playerid, X, Y, Z, 3.0);
return 1;
}
pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
if(Check[playerid] == 1)
{
if (IsPlayerInCheckpoint(playerid) && !IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, -1, "Check Conquistado!");
GivePlayerMoney(playerid, 500);
DisablePlayerCheckpoint(playerid);
return 1;
}
return 1;
}
return 1;
}