Need Small Help +REP
#8

https://sampwiki.blast.hk/wiki/SetSpawnInfo
playerid The PlayerID of who you want to set the spawn information.
team The Team-ID of the chosen player.
skin The skin which the player will spawn with.
Float:X The X-coordinate of the player's spawn position.
Float:Y The Y-coordinate of the player's spawn position.
Float:Z The Z-coordinate of the player's spawn position.
Float:Angle The direction in which the player needs to be facing after spawning.
weapon1 The first spawn-weapon for the player.
weapon1_ammo The amount of ammunition for the primary spawnweapon.
weapon2 The second spawn-weapon for the player.
weapon2_ammo The amount of ammunition for the second spawnweapon.
weapon3 The third spawn-weapon for the player.
weapon3_ammo The amount of ammunition for the third spawnweapon.

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    
// This simple example demonstrates how to spawn every player automatically with
    // CJ's skin, which is number 0. The player will spawn in Las Venturas, with
    // 36 Sawnoff-Shotgun rounds and 150 Tec9 rounds.
    
SetSpawnInfoplayerid001958.331343.1215.36269.152636281500);

or
PHP код:
public OnPlayerSpawn(playeridplayerid)
{
SetPlayerPos(playerid,2810.5525,-1092.2820,30.8828);
return 
1;

Reply


Messages In This Thread
Need Small Help +REP - by zohartrejx - 09.11.2012, 17:15
Re: Need Small Help +REP - by Virus. - 09.11.2012, 17:19
Re: Need Small Help +REP - by Glad2BeHere - 09.11.2012, 17:21
Re: Need Small Help +REP - by Konstantinos - 09.11.2012, 17:23
Re: Need Small Help +REP - by zohartrejx - 09.11.2012, 17:29
Re: Need Small Help +REP - by Konstantinos - 09.11.2012, 17:33
Re: Need Small Help +REP - by zohartrejx - 09.11.2012, 18:19
Re: Need Small Help +REP - by Alex Magaсa - 09.11.2012, 18:26
Re: Need Small Help +REP - by Konstantinos - 09.11.2012, 18:28
Re: Need Small Help +REP - by zohartrejx - 10.11.2012, 04:31

Forum Jump:


Users browsing this thread: 1 Guest(s)