SA-MP Forums Archive
Respawn a player ZCMD - 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: Respawn a player ZCMD (/showthread.php?tid=385957)



Respawn a player ZCMD - Fiore - 18.10.2012

Hello, can you please tell me what's wrong with this script? Thank you.

http://pastebin.com/xJgjL5Dd


Re: Respawn a player ZCMD - Youice - 18.10.2012

here (:

PHP код:
CMD:respawnplayer(playeridparams[])
{
    if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playeridCHANGEIT"You need to login first before using any command.");
     {
        if (
PlayerInfo[playerid][pAdmin] <= 0) return SendClientMessage(playeridCHANGEIT"You are not authorized to use this command.");
        {
            new 
string[128], playerid;
            if(
sscanf(params"u"playerid)) return SendClientMessage(playeridCHANGEIT"USAGE: /respawnplayer [playerid]");
            
format(stringsizeof(string), "AdmWarn: You have been respawned by Admin %s."sendername);
            
SendClientMessageToAll(CHANGEITstring);
            
SpawnPlayer(playerid);
        }
    }
    return 
1;




Re: Respawn a player ZCMD - Fiore - 18.10.2012

A question, how do i set the spawn?


Re: Respawn a player ZCMD - Youice - 18.10.2012

here


Re: Respawn a player ZCMD - Red_Dragon. - 18.10.2012

With the floats X:Y:Z


Re: Respawn a player ZCMD - Fiore - 18.10.2012

How do i make people respawn with old skin and not with new one?


Re: Respawn a player ZCMD - Youice - 18.10.2012

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
With the floats X:Y:Z
Quote:
Originally Posted by Fiore
Посмотреть сообщение
How do i make people respawn with old skin and not with new one?
all are included in the above link, just read carefully


Re: Respawn a player ZCMD - Fiore - 18.10.2012

Thank you Youice, take a look at this!

http://pastebin.com/BnMWN5Rp


Re: Respawn a player ZCMD - Youice - 18.10.2012

Quote:
Originally Posted by Fiore
Посмотреть сообщение
Thank you Youice, take a look at this!

http://pastebin.com/BnMWN5Rp
no under OnPlayerSpawn !!! (as basic)


Re: Respawn a player ZCMD - Fiore - 18.10.2012

LOL you're right, sorry my mistake! Thank you again!