Bug respawn
#1

Hello Who Knows This Bug ?

If I am in Car than don't respawn me in right position

Wich is in this video:


[ame]http://www.youtube.com/watch?v=BawJDRZiYLc[/ame]

Here is CMD:

PHP код:
CMD:respawn(playeridparams[])
{
    if(
gPlayerLogged[playerid] == 0) return SCM(playeridCOLOR_LIGHTRED"login!");
    if(
IsPlayerConnected(playerid))
    {
          if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pHelper] >= 1)
        {
            new 
id,sendername[30],giveplayer[30],string[100];
            if(
sscanf(params"u"id)) return SCM(playerid,COLOR_WHITE,"type: /respawn <Name/Playerid>");
            {
                if(
IsPlayerConnected(id))
                {
                    if(
id != INVALID_PLAYER_ID)
                    {
                        
GetPlayerName(idgiveplayersizeof(giveplayer));
                        
SpawnPlayer(id);
                        
GetPlayerName(playeridsendernamesizeof(sendername));
         
                        return 
1;
                    }
                }
                else
                {
                    
SCM(playerid,COLOR_WHITE,"The player is not connected.");
                }
            }
           }
        else
        {
            
SCM(playeridCOLOR_WHITEAdminOnly);
        }
    }
    return 
1;

Reply
#2

If you spawn player in vehicle there is a cigarette bug, use
pawn Код:
new Float:x, Float:y, Float:z;
// RemovePlayerFromVehicle(id); // uncomment if doesnt work
GetPlayerPos(id, x, y, z);
SetPlayerPos(id, x, y, z);
SpawnPlayer(id);
Reply
#3

And this inside cmd ?
Reply
#4

Yes change "SpawnPlayer(id);" to my code
Reply
#5

ok, thanks :*
Reply
#6

@Jefff Thanks i give you + REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)