- KeNz[]Admin GTA
- Mesaje : 30
Data de inscriere : 12/04/2016
Varsta: : 23
Fs[rob]
25/4/2016, 19:42
Nume script: Sistem de rob
Continut: contine un sistem de rob foarte frumos pentru a se da rob la banca
Descriere: aici ce sa mai zic...cam ce am zis sus
Link download: nu e link de download
Un mic tutorial: un simplu cod
new Robbed[MAX_PLAYERS];
new RobbedTime[MAX_PLAYERS];
new Robbing[MAX_PLAYERS];//
Code:
if(strcmp(cmd, "/rob", true) == 0 || strcmp(cmd, "/robbank", true) == 0) //100% by TayFas, idea from LinkMania.
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,2315.4958,-0.4682,26.7422))
{
if(Robbing[playerid] == 0)
{
if(PlayerHasRobbedBank[playerid] == 0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, COLOR_1RED, "Ramai aici pana colectezi banii.Dureaza 15 secunde");
SendClientMessage(playerid, COLOR_1BLUE, "Politia a fost anuntata de un angajat care a apasat pe butonu de panica! Dupa ce ai luat banii FUGI!");
TogglePlayerControllable(playerid, 0);
SetTimerEx("rob", 15000, 0, "d", playerid);
PlayerROB[playerid] = -1;
PlayerHasRobbedBank[playerid] = 1;
WantedPoints[playerid] += 6;
SetPlayerCriminal(playerid,255, "Ai Jefuit Banca");
SetPlayerAttachedObject( playerid, 0, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Ai mai dat un rob pe ora asta! Asteapta payday-ul pentru a mai da rob!");
}
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Ai dat deja /rob! Completeaza jefuirea aceasta mai intai!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Nu esti langa seiful bancii pentru a-l jefuii!");
return 1;
}
}
}
Code:
public rob(playerid)//
{
PlayerROB[playerid] = 0;
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_1GREEN, "Felicitari, ai jefuit banca dar Politia a fost alertata !");
GivePlayerMoneyEx(playerid, 75000);
GameTextForPlayer(playerid, "~g~+75000$", 5000, 1);
}
Continut: contine un sistem de rob foarte frumos pentru a se da rob la banca
Descriere: aici ce sa mai zic...cam ce am zis sus
Link download: nu e link de download
Un mic tutorial: un simplu cod
new Robbed[MAX_PLAYERS];
new RobbedTime[MAX_PLAYERS];
new Robbing[MAX_PLAYERS];//
Code:
if(strcmp(cmd, "/rob", true) == 0 || strcmp(cmd, "/robbank", true) == 0) //100% by TayFas, idea from LinkMania.
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,2315.4958,-0.4682,26.7422))
{
if(Robbing[playerid] == 0)
{
if(PlayerHasRobbedBank[playerid] == 0)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
SendClientMessage(playerid, COLOR_1RED, "Ramai aici pana colectezi banii.Dureaza 15 secunde");
SendClientMessage(playerid, COLOR_1BLUE, "Politia a fost anuntata de un angajat care a apasat pe butonu de panica! Dupa ce ai luat banii FUGI!");
TogglePlayerControllable(playerid, 0);
SetTimerEx("rob", 15000, 0, "d", playerid);
PlayerROB[playerid] = -1;
PlayerHasRobbedBank[playerid] = 1;
WantedPoints[playerid] += 6;
SetPlayerCriminal(playerid,255, "Ai Jefuit Banca");
SetPlayerAttachedObject( playerid, 0, 1550, 1, 0.024558, -0.279748, -0.060589, 6.105677, 137.291320, 147.132202, 1.019888, 1.000000, 1.000000 );
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Ai mai dat un rob pe ora asta! Asteapta payday-ul pentru a mai da rob!");
}
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Ai dat deja /rob! Completeaza jefuirea aceasta mai intai!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_1RED, "Nu esti langa seiful bancii pentru a-l jefuii!");
return 1;
}
}
}
Code:
public rob(playerid)//
{
PlayerROB[playerid] = 0;
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, COLOR_1GREEN, "Felicitari, ai jefuit banca dar Politia a fost alertata !");
GivePlayerMoneyEx(playerid, 75000);
GameTextForPlayer(playerid, "~g~+75000$", 5000, 1);
}
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum