SA-MP Forums Archive
Doesn't put in veh. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Doesn't put in veh. (/showthread.php?tid=149509)



Doesn't put in veh. - 0ne - 22.05.2010

pawn Код:
bringer[playerid] = CreateVehicle(504,FarmWarRand[fRandom][0],FarmWarRand[fRandom][1],FarmWarRand[fRandom][2],FarmWarRand[fRandom][3],colors[random(126)],colors[random(126)],10000);
            SetVehicleVirtualWorld(bringer[playerid],RingerWar);
                    if(!IsPlayerInAnyVehicle(playerid)) PutPlayerInVehicle(playerid,bringer[playerid],0), TogglePlayerControllable(playerid,true);
so the first player who types /join gets putted in the vehicle ,but the 2nd doesn't, he needs to die then gets putted into the veh, anyone knows why?


Re: Doesn't put in veh. - Steven82 - 22.05.2010

coding fail, thats all


Re: Doesn't put in veh. - 0ne - 22.05.2010

I'd like to see you do better ?


Re: Doesn't put in veh. - 0ne - 25.05.2010

Help?.


Re: Doesn't put in veh. - Grim_ - 25.05.2010

Quote:
Originally Posted by Steven82
coding fail, thats all
Instead of spamming the topic, you should try and help.

Can I see the rest of the callback where that code resides please?


Re: Doesn't put in veh. - 0ne - 26.05.2010

Quote:
Originally Posted by Grim_
Quote:
Originally Posted by Steven82
coding fail, thats all
Instead of spamming the topic, you should try and help.

Can I see the rest of the callback where that code resides please?
pawn Код:
SetPlayerSkin(playerid, FarmSkin[random(sizeof(FarmSkin))][0]);
        new fRandom = random(sizeof(FarmWarRand));
        bringer[playerid] = CreateVehicle(504,FarmWarRand[fRandom][0],FarmWarRand[fRandom][1],FarmWarRand[fRandom][2],FarmWarRand[fRandom][3],colors[random(126)],colors[random(126)],10000);
    SetVehicleVirtualWorld(bringer[playerid],RingerWar);
        if(!IsPlayerInAnyVehicle(playerid)) PutPlayerInVehicle(playerid,bringer[playerid],0), TogglePlayerControllable(playerid,true);
        gTeam[playerid] = TEAM_RINGER;
        SetPlayerWorldBounds(playerid, -887.5186, -1261.211, -875.8406, -1342.956);
        SetPlayerVirtualWorld(playerid,RingerWar);
        SetPlayerColor(playerid,COLOR_STEELBLUE);
        ResetPlayerWeapons(playerid);
        GivePlayerWeapon(playerid,16,15);
        GivePlayerWeapon(playerid,25,20);
        GivePlayerWeapon(playerid,30,100);
        GivePlayerWeapon(playerid,6,1);
        InMiniGames[playerid] = 1;
        PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
        TogglePlayerControllable(playerid,true);



Re: Doesn't put in veh. - 0ne - 28.05.2010

bump