[Tutorial] Wanted la 0 la respawn ? REzolvat	   Inregistrare

[Tutorial] Wanted la 0 la respawn ? REzolvat	   Inregistrare




 
AcasaUltimele imaginiÎnregistrareConectare

Distribuiţi|

[Tutorial] Wanted la 0 la respawn ? REzolvat

Vezi subiectul anterior Vezi subiectul urmator In jos
AutorMesaj
FreestYleeR
Moderator
FreestYleeR
Rank: Moderator
Mesaje : 90
Data de inscriere : 02/06/2013
Varsta : 26
Localizare : Prahova
[Tutorial] Wanted la 0 la respawn ? REzolvat	   Empty
MesajSubiect: [Tutorial] Wanted la 0 la respawn ? REzolvat [Tutorial] Wanted la 0 la respawn ? REzolvat	   EmptyJoi Iun 27, 2013 10:10 am

PTr cei care aveau problema cu wantedul cand primeai respawn se dadea la 0. Te duci in gamemod si cauti linia
Cod:
if(newstate == PLAYER_STATE_SPAWNED)


Si aicio sa ai
new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
{
SetPlayerSpawn(playerid);
}
if(PlayerOnMission[playerid] > 0)
{
GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3);
PlayerOnMission[playerid] = 0;
PlayerInfo[playerid][pMissionNr] = 0;
}
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
}
return 1;
}

De aici stergi
Cod:
WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;

la sfarsit tb sa arate asa
cod
new Float: lwx, Float:lwy, Float:lwz;
GetPlayerPos(playerid, lwx, lwy, lwz);
if((lwz > 530.0 && PlayerInfo[playerid][pInt] == 0) || PlayerToPoint(1000.0, playerid, -1041.9,-1868.4,79.1)) //the highest land point in sa = 526.8
{
SetPlayerSpawn(playerid);
}
if(PlayerOnMission[playerid] > 0)
{
GameTextForPlayer(playerid, "~r~Mission failed", 5000, 3);
PlayerOnMission[playerid] = 0;
PlayerInfo[playerid][pMissionNr] = 0;
}
if(PlayerInfo[playerid][pDonateRank] > 0) { SetPlayerHealth(playerid, 100.0); }
else { SetPlayerHealth(playerid, 50.0+PlayerInfo[playerid][pSHealth]); }
MedicBill[playerid] = 1;
TelePos[playerid][0] = 0.0;
TelePos[playerid][1] = 0.0;
gPlayerSpawned[playerid] = 1;
SafeTime[playerid] = 60;
}
return 1;
}
Sus In jos

[Tutorial] Wanted la 0 la respawn ? REzolvat

Vezi subiectul anterior Vezi subiectul urmator Sus

Subiecte similare

-
t [Tutorial]Format
t Addons DeathRun + Respawn + Knife eXtreme HaveFun [LINUX]
t [Tutorial] Cum fac CFG
t [Tutorial] Cum fac un server de CS
t [Tutorial] Cum scap de lag
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
 :: »[RedCobra] Resurse & Support :: SA-MP-