22.11.2013, 00:58
No meu sv os caras fogem da policia e se a policia matar vai sу pro hospital, o certo era ir preso pq ai ninguem se entrega, pq se morre vai pro hp msm! Alguem ajuda ai!
if(WantedPoints[playerid] >= 1)
{
if(IsACop(killerid))
{
SetPlayerPos(playerid, X, Y, Z);
//e coloca as funзхes de sua preferкncia
}
}
new Preso[MAX_PLAYERS];
new TempoPreso[MAX_PLAYERS];
if(IsACop(killerid))
{
if(GetPlayerWantedLevel(playerid) == 1)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 180;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
else if(GetPlayerWantedLevel(playerid) == 2)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 360;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
else if(GetPlayerWantedLevel(playerid) == 3)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 540;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
else if(GetPlayerWantedLevel(playerid) == 4)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 720;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
else if(GetPlayerWantedLevel(playerid) == 5)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 900;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
else if(GetPlayerWantedLevel(playerid) == 6)
{
Preso[playerid] = 1;
TempoPreso[playerid] = 1080;
SetPlayerWantedLevel(playerid, 0);
SetPlayerPosition(playerid, X, Y, Z);
}
}
if(Preso[playerid] >= 1)
{
PlayerInfo[playerid][Tempopreso]--;
}
if(TempoPreso[playerid] <= 1)
{
SetPlayerPosition(playerid, X, Y, Z);
SendClientMessage(playerid, -1, "Livre");
Preso[playerid] = 0;
TempoPreso[playerid] = 0;
}