04.07.2014, 17:54
Coloco Onde ?
PHP код:
public OnPlayerSpawn(playerid)
{
LogarProf(playerid);
TextDrawHideForPlayer(playerid, ImagemConnect);
TextDrawHideForPlayer(playerid, BemVindo);
if(Preso[playerid] == 1)
{
if(GetPlayerWantedLevel(playerid) == 1)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 120000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
else if(GetPlayerWantedLevel(playerid) == 2)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 240000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
else if(GetPlayerWantedLevel(playerid) == 3)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 480000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
else if(GetPlayerWantedLevel(playerid) == 4)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 600000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
else if(GetPlayerWantedLevel(playerid) == 5)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 720000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
else if(GetPlayerWantedLevel(playerid) == 6)
{
SetPlayerInterior(playerid, 6);
Assalto[playerid] = 0;
Preso[playerid] = 1;
GameTextForPlayer(playerid, "~w~PRESO!", 3000, 0);
SetPlayerPos(playerid, 264.5996, 77.7367, 1001.0391);
TempoPreso[playerid] = SetTimerEx("Liberar", 840000, false, "i", playerid);
ResetPlayerWeapons(playerid);
}
}
return 1;
}