SA-MP Forums Archive
Help CJ Spawn - 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: Help CJ Spawn (/showthread.php?tid=428723)



Help CJ Spawn - Jerry987 - 06.04.2013

My problem is when i kill myself by an comand or otherwise i spawn with the CJ skin
and when i die again comes ''stay within the world boundaries''

Please help me!
Thanks


Re: Help CJ Spawn - davve95 - 06.04.2013

Search in your script if you have this somewhere:

https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds


Re: Help CJ Spawn - Jerry987 - 06.04.2013

Quote:
Originally Posted by davve95
Посмотреть сообщение
Search in your script if you have this somewhere:

https://sampwiki.blast.hk/wiki/SetPlayerWorldBounds
no i haven't it but that not te problem the problem is why i'am spawning with the CJ skin`?


Re: Help CJ Spawn - davve95 - 06.04.2013

On AddPlayerClass change the first figure it's id for skins. 0 is CJ skin.

https://sampwiki.blast.hk/wiki/AddPlayerClass

https://sampwiki.blast.hk/wiki/Category:Skins


Re: Help CJ Spawn - Jerry987 - 06.04.2013

Quote:
Originally Posted by davve95
Посмотреть сообщение
On AddPlayerClass change the first figure it's id for skins 0 is CJ
i dont have AddPLayerClass can you explain that pls?


Re: Help CJ Spawn - davve95 - 06.04.2013

Hmm add a player class then .

Or under OnPlayerConnect

set players skin.


Re: Help CJ Spawn - Jerry987 - 06.04.2013

Quote:
Originally Posted by davve95
Посмотреть сообщение
Hmm add a player class then .

Or under OnPlayerConnect

set players skin.
AddPlayerClass( 0, 1129.0527, -1489.7622, 22.8259, 0.3060, 0, 0, 0, 0, 0, 0);
SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
so?


Re: Help CJ Spawn - DobbysGamertag - 07.04.2013

Код:
public OnGameModeInit()
{
	AddPlayerClass(6,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 1  
	AddPlayerClass(8,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 2
	AddPlayerClass(15,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 3
	AddPlayerClass(33,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 4
	AddPlayerClass(86,1705.2303,989.4046,10.8203,114.8775,0,0,0,0,0,0); // LVA Freight depo spawn LV 1
        return 1;
}
Like that under OnGameModeInit

the first numbers are the skin.


AW: Re: Help CJ Spawn - Jerry987 - 07.04.2013

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
Код:
public OnGameModeInit()
{
	AddPlayerClass(6,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 1  
	AddPlayerClass(8,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 2
	AddPlayerClass(15,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 3
	AddPlayerClass(33,2855.1899,901.6713,10.6131,2.8424,0,0,0,0,0,0); // rockshore east spawn LV 4
	AddPlayerClass(86,1705.2303,989.4046,10.8203,114.8775,0,0,0,0,0,0); // LVA Freight depo spawn LV 1
        return 1;
}
Like that under OnGameModeInit

the first numbers are the skin.
Same problem ,but there is a strange thinks after more gmx the bug is fix when i shut down my server the bug is again here
and this happed when i kill myself by and comand or jump from a high buliding then i spawn with the CJ skin