SA-MP Forums Archive
Why does nothing happen? - 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)
+--- Thread: Why does nothing happen? (/showthread.php?tid=538646)



Why does nothing happen? - FiveCentz - 23.09.2014

Hey, and well this is what I have for my code, the cars spawn in, but yet, I spawn in far away on a mountain, without he skin, and weapons.

http://prntscr.com/4pfbo6 Help.


Re: Why does nothing happen? - FiveCentz - 23.09.2014

Help anyone?


Re: Why does nothing happen? - gtasarules14 - 23.09.2014

Try doing with OnPlayerSpawn
SetPlayerSkin(playerid,skinid)
SetPlayerPos(playerid,coords)
and
GivePlayerWeapons(playerid, weaponid, ammo)

Try this


Re: Why does nothing happen? - Abagail - 23.09.2014

Your code to give them those items? You'd have to script that if you want it to occur...


Re: Why does nothing happen? - FiveCentz - 23.09.2014

Quote:
Originally Posted by gtasarules14
Посмотреть сообщение
Try doing with OnPlayerSpawn
SetPlayerSkin(playerid,skinid)
SetPlayerPos(playerid,coords)
and
GivePlayerWeapons(playerid, weaponid, ammo)

Try this
In the same place?


Re: Why does nothing happen? - Abagail - 23.09.2014

public OnPlayerSpawn(playerid)
{
// Give them the weapons, etc.
}

Place that call-back underneath anything else.


Re: Why does nothing happen? - FiveCentz - 23.09.2014

THANKS!