else if(PlayerToPoint(2.0,playerid,159.7047,-80.1586,1001.8047)) // Zip
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os %s estгo tentando roubar o cofre da Zip! ID:[%d]", playername, NomeORG(playerid) , playerid);
SendClientMessageToAll(GetPlayerColor(playerid), string);
SendClientMessage(playerid, COLOR_GRAD5, "Espere 60 segundos para terminar de roubar a Zip.");
SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Zip");
SetTimer("RoubandoZip", 60000, false);
roubando[playerid] = 1;
SetTimer("Roubei", 180000, false);
return 1;
}
forward RoubandoZip(playerid);
public RoubandoZip(playerid)
{
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 160.1404,-80.5766,1001.8047))
{
SendClientMessage(playerid, GetPlayerColor(playerid), "Vocк se afastou do cofre! Tentativa de roubo fracassada!");
new playername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os %s nгo conseguiram roubar o cofre da Zip!", playername, NomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), string);
roubando[playerid] = 0;
return 1;
}
new cash = random(25000);
new msgzip[80];
format(msgzip, sizeof(msgzip), "Vocк conseguiu roubar a Zip, e ganhou %d !!",cash);
SendClientMessage(playerid, 0xFFFAFAFF, msgzip);
new playername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s e os %s conseguiram roubar o cofre da Zip!", playername, NomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), string);
GivePlayerMoney(playerid, cash);
return 1;
}
SetTimer("RoubandoZip", 60000, false);
SetTimerEx("RoubandoZip", 60000, false, "d", playerid);
else if(PlayerToPoint(2.0,playerid,159.7047,-80.1586,1001.8047)) // Zip
else if(PlayerToPoint(playerid,2.0,159.7047,-80.1586,1001.8047)) // Zip
pawn Код:
pawn Код:
|
SetTimer("Todos", 60000, false);
public Todos()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SendClientMessage(i, -1, "Oi vocк й lindo");
}
}
SetTimerEx("Um", 60000, false, "d", playerid);
public Um(playerid)
{
SendClientMessage(playerid, -1, "Oi vocк й lindo");
}
forward RoubandoZip(playerid);
public RoubandoZip(playerid) {
new playername[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if(!IsPlayerInRangeOfPoint(playerid, 5.0, 160.1404,-80.5766,1001.8047)) {
SendClientMessage(playerid, GetPlayerColor(playerid), "Vocк se afastou do cofre! Tentativa de roubo fracassada!");
format(str, 128, "%s e os %s nгo conseguiram roubar o cofre da Zip!", playername, NomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), string);
roubando[playerid] = 0;
}
else {
new cash = random(25000);
format(str, 128, "Vocк conseguiu roubar a Zip, e ganhou %d !!", cash);
SendClientMessage(playerid, 0xFFFAFAFF, str);
format(str, 128, "%s e os %s conseguiram roubar o cofre da Zip!", playername, NomeORG(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), str);
GivePlayerMoney(playerid, cash);
}
return 1;
}