Respawn a player ZCMD
#1

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

http://pastebin.com/xJgjL5Dd
Reply
#2

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;

Reply
#3

A question, how do i set the spawn?
Reply
#4

here
Reply
#5

With the floats X:Y:Z
Reply
#6

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

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
Reply
#8

Thank you Youice, take a look at this!

http://pastebin.com/BnMWN5Rp
Reply
#9

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)