[HELP] Auto spawn under Onplayerconnect ?
#3

Quote:
Originally Posted by Shetch
Посмотреть сообщение
Show us your OnPlayerSpawn script.
Here:

PHP код:
public OnPlayerSpawn(playerid)
{
    if(
pInfo[playerid][Login] == 0) return Kick(playerid);
    
// Anti fake kill
    
SetPVarInt(playerid,"K_Times",0);
    
// business
    
pInfo[playerid][CurrentBusiness] = 0;
    
// house
    
pInfo[playerid][CurrentHouse] = 0;
    
// war system
    
if(pInfo[playerid][InWar] == 1)
    {
        
SetPlayerPos(playerid,1351.4365,2147.5635,11.0156);
        
SetPlayerVirtualWorld(playerid,gInfo[pInfo[playerid][gID]][WarID]);
        
GivePlayerWeapon(playerid,26,999999999);
        
GivePlayerWeapon(playerid,24,999999999);
        
GivePlayerWeapon(playerid,32,999999999);
        
GivePlayerWeapon(playerid,31,999999999);
        
SMT(playerid,"~n~~r~~h~GROUP WAR !");
        
SMTD(playerid,"~r~|| ~w~Ketik ~y~/lgwar ~w~untuk keluar dari group war!",10);
    }
    if(
pInfo[playerid][Color] == 0)
    {
        new 
exd PlayerColorsrandom200 ) ];
        
SetPlayerColor(playerid,exd);
        
pInfo[playerid][Color] = exd;
    }
    if(
pInfo[playerid][Skin] != -&& GPVI(playerid,"mGameType") != 1)
    {
        
SetPlayerSkin(playerid,pInfo[playerid][Skin]);
    }
    
// money bag
    
if(pInfo[playerid][GetMoney] == 1)
    {
        
SetPlayerAttachedObject(playerid9155010.041999,-0.260000,-0.031999,41.500000,90.800010,123.799987,1.000000,1.000000,1.000000);
    }
    
// Mnigames
    
if(pInfo[playerid][Minigame]== 1)
    {
        
MinigamesJoin(playerid,GetPVarInt(playerid,"mGameType"));
    }
    else
    {
        
LoadToys(playerid);
    }
    
    if( 
pInfo[playerid][JailTime] != && pInfo[playerid][Minigame] != && pInfo[playerid][InWar] != 1)
     {
        
SpawnHouse(playerid);
    }
    
    
// Vips system
    
if(pInfo[playerid][VIP] != || pInfo[playerid][Admin] > 5)
    {
        
SetPlayerArmour(playerid,50);
    }
    
    
// Jail system
    
if(pInfo[playerid][JailTime] != 0)
    {
        
SetPlayerJail(playerid);
    }
    
    
PlayerPlaySound(playerid11860.00.00.0);
    
// Race system
    
pInfo[playerid][InRace] = -1;
    
RaceCheckpoint[playerid] = -1;
    
    
// anims
    
AnimsLoad(playerid);
    return 
1;

The problem is, i got Auto Spawned without reason.
#Sorryformybadenglish
Reply


Messages In This Thread
[HELP] Auto spawn under Onplayerconnect ? - by VenomMancer - 24.06.2015, 20:08
Re: [HELP] Auto spawn under Onplayerconnect ? - by Shetch - 24.06.2015, 20:15
Re: [HELP] Auto spawn under Onplayerconnect ? - by VenomMancer - 24.06.2015, 20:26
Re: [HELP] Auto spawn under Onplayerconnect ? - by VenomMancer - 25.06.2015, 03:38
Re: [HELP] Auto spawn under Onplayerconnect ? - by NeilC - 25.06.2015, 09:53
Re: [HELP] Auto spawn under Onplayerconnect ? - by FailerZ - 25.06.2015, 10:22

Forum Jump:


Users browsing this thread: 5 Guest(s)