[Ajuda] Spawn Hospital mais prуximo
#7

Quote:
Originally Posted by HelderPT
Посмотреть сообщение
Opa eu tenho isso num gm aq velho

Tipo vc esta na regiгo LS e morre e vai para ls, morre em sf nasce em sf serб isso?


PHP код:
stock IsPlayerInLs(playerid)
{
    new 
Float:x,Float:y,Float:z;//-735,7062, -2954,502, 2931,147, 373,692);
    
GetPlayerPos(playeridxyz);
    if(
>= -735.7062 && >= -2954.502 && <= 2931.147 && <= 373.692) return 1;
    else return 
0;
}
stock IsPlayerInLv(playerid)
{
    new 
Float:x,Float:y,Float:z;//-2143,608, -151,5365, -2043,178, -76,58216 sf
    
GetPlayerPos(playeridxyz);
    if(
>= 852.4849 && >= 490.4708 && <= 2931.147 && <= 2896.113) return 1;
    else return 
0;
}
stock IsPlayerInFc(playerid)
{
    new 
Float:x,Float:y,Float:z;//-1167,788, 502,1487, 922,5522, 2942,825);
    
GetPlayerPos(playeridxyz);
    if(
>= -1167.788 && >= 502.1487 && <= 922.5522 && <= 2942.825) return 1;
    else return 
0;
}
stock IsPlayerInSf(playerid)
{
    new 
Float:x,Float:y,Float:z;//-2942,825, -2931,147, -992,6194, 2931,147);;
    
GetPlayerPos(playeridxyz);
    if(
>= -2942.825 && >= -2931.147 && <= -992.6194 && <= 2931.147) return 1;
    else return 
0;

PUBLIC => OnPlayerDeath

PHP код:
if(IsPlayerInLs(playerid))
{
SetSpawnInfo(playerid0,DOF2_GetInt(file2"Skin"), 1175.1531,-1312.8925,13.9880,266.1378,0,0,0,0,0,0); // Spawn Quando Morre
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
}
if(
IsPlayerInLv(playerid)){
SetSpawnInfo(playerid0,DOF2_GetInt(file2"Skin"), 1607.0583,1821.1628,10.8280,356.5667,0,0,0,0,0,0);
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
}
if(
IsPlayerInFc(playerid)){
SetSpawnInfo(playerid0,DOF2_GetInt(file2"Skin"), -316.3103,1053.5731,20.2879,1.6997,0,0,0,0,0,0);
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
}
if(
IsPlayerInSf(playerid)){
SetSpawnInfo(playerid0,DOF2_GetInt(file2"Skin"), -2652.3159,636.1181,14.4531,179.9128,0,0,0,0,0,0);
ClearAnimations(playerid);
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);

Use como base nem sei se funciona pois a gm aqui nгo compila
Irei testar aqui obrigado pelo apoio
Reply


Messages In This Thread
[Resolvido]Spawn Hospital mais prуximo - by Japis - 16.02.2019, 02:26
Re: Spawn Hospital mais prуximo - by markshelcee0104031995 - 16.02.2019, 02:40
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 10:40
Re: Spawn Hospital mais prуximo - by Lovejoy - 16.02.2019, 11:47
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 13:39
Re: Spawn Hospital mais prуximo - by HelderPT - 16.02.2019, 15:11
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 15:47
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 16:02
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 19:32
Re: Spawn Hospital mais prуximo - by HelderPT - 16.02.2019, 20:34
Re: Spawn Hospital mais prуximo - by Japis - 16.02.2019, 20:55

Forum Jump:


Users browsing this thread: 3 Guest(s)