- 0
Problema /rob
-
Similar Content
-
- 14 answers
- 257 views
-
- 7 answers
- 169 views
-
- 1 reply
- 54 views
-
- 2 replies
- 141 views
-
- 1 reply
- 168 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Otiy
Am si eu o problema cu /rob. Cand cineva da /rob ii da wanted 3 in loc de 6 ce trebuie sa fac? [pawn]if(strcmp(cmd, "/rob", true) == 0)
{
if(PlayerInfo[playerid][pRob] >= 15)
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerInVehicle(playerid, 176))
{
if(PlayerToPoint(30.0, playerid,1460.9639, -1022.6666, 23.8281))
{
if(robtime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "You need to wait 5 minutes!");
WantedPoints[playerid] = 6; SetPlayerCriminal(playerid,255, "Robbing a Bank");
GameTextForPlayer(playerid, "~r~Ai jefuit banca", 2500, 1);
SetPlayerWantedLevel(playerid, 6);
CP[playerid] = 51;
SetPlayerCheckpoint(playerid, 2379.7356,-2015.2886,14.9519, 3.0);
BizzInfo[4][bProducts] -= 25;
robtime[playerid] = 1;
SetTimerEx("robreset", 300000, 0, "%d", playerid);
new pName[24];
new str[128];
GetPlayerName(playerid, pName, 24);
format(str, 128,"[HOT NEWS] Banca a fost jefuita de %s, toate unitatile in alerta !", pName);
SendClientMessageToAll(COLOR_ORANGE, str);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not at the Bank !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY," You are not in the black van !");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY," You are not able to rob the Bank now !");
RemovePlayerFromVehicle(playerid);
return 1;
}
}[/pawn]
Link to comment
Share on other sites
1 answer to this question
Recommended Posts