18.10.2012, 14:48
Hello, can you please tell me what's wrong with this script? Thank you.
http://pastebin.com/xJgjL5Dd
http://pastebin.com/xJgjL5Dd
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;
}