PDA

View Full Version : When player spawns...


Onfroi
28/01/2014, 11:33 PM
So I've been trying to fix this bug for 2 days now and still no progress. The problem is when ever I login and spawn this happens..
http://i.imgur.com/FM9ep0l.png
The code OnPlayerSpawn is SetPlayerPos(playerid, 1094.4108,-2036.9313,82.7598);

I'm a little rusty on pawn, so does anybody knows how to fix this?
Any help would be appreciated, Thanks!

MahdiGames
28/01/2014, 11:40 PM
Check if u have another scripts had OnPlayerSpawn
_________________
xXx Stunt Paradise Awesome

Server IP: Click Here! (samp://178.63.194.202:7777)

Hosted Tab Game-MP for 10 Euro / per month
Hosted Tab + Server host 50 slots + Control Panel for 15 Euro
Skype: MahdiAsali
€10 Euro for Hosted List (http://spa-samp.netau.net/forums/showthread.php?tid=7&pid=9#pid9)

Onfroi
28/01/2014, 11:55 PM
Check if u have another scripts had OnPlayerSpawn
Nop, nothing.

Swedky
29/01/2014, 01:45 AM
In 'OnGameModeInit':

AddPlayerClass(...); // Code

The problem is that on having spawned, no Skin is assigned to the player, therefore it appears. Then the solution is to use 'AddPlayerClass' in the GM.

Regards :).

Onfroi
29/01/2014, 02:13 AM
In 'OnGameModeInit':

AddPlayerClass(...); // Code

The problem is that on having spawned, no Skin is assigned to the player, therefore it appears. Then the solution is to use 'AddPlayerClass' in the GM.

Regards :).
Thank you very much! It works now :D