08.05.2012, 22:54
Quote:
Dini й so por enquanto '-'
OnPlayerSpawn: // SetSpawnInfo nгo й uma callback O_O' pawn Код:
|
Tenta:
pawn Код:
public OnPlayerSpawn(playerid)
{
LogarProf(playerid);
TextDrawShowForPlayer(playerid,UPRelogio[playerid]);
TextDrawHideForPlayer(playerid, TEXT0);
TextDrawHideForPlayer(playerid, TEXT1);
TextDrawHideForPlayer(playerid, TEXT2);
TextDrawHideForPlayer(playerid, TEXT3);
TextDrawHideForPlayer(playerid, TEXT4);
TextDrawHideForPlayer(playerid, ImagemConnect);
GangZoneShowForPlayer(playerid, favela, Amarelo);
GangZoneShowForPlayer(playerid, areadmlv, Branco);
emcasa[playerid] = 0;
minUP[playerid] = dini_Int(file, "Relogioupm");
segUP[playerid] = dini_Int(file, "Relogioups");
TempoExp[playerid] = 0;
if (Preso[playerid] == 0)
{
Preso[playerid] = 0;
}
if (Preso[playerid] == 1)
{
if (IsAdmin[playerid] > 0)
{
Preso[playerid] = 0;
}
if (GetPlayerWantedLevel(playerid) == 1)
{
SetPlayerInterior(playerid, 6);
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);
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);
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);
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);
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);
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);
}
if (CheckCasas(playerid) > 0)// || IsMorador(playerid) == 1)
{
CasaX[playerid] = dini_Int(conta, "CasaX");
CasaY[playerid] = dini_Int(conta, "CasaY");
CasaZ[playerid] = dini_Int(conta, "CasaZ");
SetPlayerPos(playerid, CasaX[playerid], CasaY[playerid], CasaZ[playerid]);
}
}
return 1;
}