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(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;
}
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
|
no under
OnPlayerSpawn !!! (as basic)
Re: Respawn a player ZCMD -
Fiore - 18.10.2012
LOL you're right, sorry my mistake! Thank you again!