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(playerid, params[])
{
    if(!
IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, CHANGEIT, "You need to login first before using any command.");
     {
        if (
PlayerInfo[playerid][pAdmin] <= 0) return SendClientMessage(playerid, CHANGEIT, "You are not authorized to use this command.");
        {
            new 
string[128], playerid;
            if(
sscanf(params, "u", playerid)) return SendClientMessage(playerid, CHANGEIT, "USAGE: /respawnplayer [playerid]");
            
format(string, sizeof(string), "AdmWarn: You have been respawned by Admin %s.", sendername);
            
SendClientMessageToAll(CHANGEIT, string);
            
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: