Player spawn at wrong place
#6

OK

This is my first class :

Quote:

AddPlayerClass(280, 1310.1509, -1367.6149 ,13.5383 ,179.3588, 0, 0, 0, 0, 0, 0);

And the second one which I want to spawn in different location :

Quote:

AddPlayerClass(0, 2530.2471, -1698.7323 ,13.4976 ,240.3018, 16, 5, 28, 140, 23, 30);

And on spawn code I have that :

Quote:

public OnPlayerSpawn(playerid)
{
SetPlayerPos (playerid, 1310.1509,-1367.6149,13.5383);
SetPlayerHealth (playerid, 100);
SetPlayerArmour (playerid, 100);
new PlayerName[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "%s has spawned.", PlayerName);
SendClientMessageToAll(0xFFFFFFFF, string);
return 1;
}

On spawn code I notice there is same location as the first class so maybe that cause the problem with location
Reply


Messages In This Thread
Player spawn at wrong place - by NiceWizard - 12.01.2013, 21:27
Re: Player spawn at wrong place - by Antonioh - 12.01.2013, 21:45
Re: Player spawn at wrong place - by NiceWizard - 12.01.2013, 22:19
Re: Player spawn at wrong place - by NiceWizard - 13.01.2013, 07:47
Re: Player spawn at wrong place - by RajatPawar - 13.01.2013, 07:59
Re: Player spawn at wrong place - by NiceWizard - 13.01.2013, 08:01
Re: Player spawn at wrong place - by RajatPawar - 13.01.2013, 08:19
Re: Player spawn at wrong place - by NiceWizard - 13.01.2013, 08:27
Re: Player spawn at wrong place - by NiceWizard - 13.01.2013, 09:21
Re: Player spawn at wrong place - by Mr.Faqahat - 13.01.2013, 09:30

Forum Jump:


Users browsing this thread: 3 Guest(s)