Guest User

Respawn CMD

a guest
Oct 18th, 2012
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. CMD:respawnplayer(playerid, params[])
  2. {
  3. if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, CHANGEIT, "You need to login first before using any command.");
  4. {
  5. if (PlayerInfo[playerid][pAdmin] > 0) return SendClientMessage(playerid, CHANGEIT, "You are not authorized to use this command.");
  6. {
  7. new string[128], playerid;
  8. if(sscanf(params, "u", playerid)) return SendClientMessage(playerid, CHANGEIT, "USAGE: /respawnplayer [playerid]");
  9. format(string, sizeof(string), "AdmWarn: You have been respawned by Admin %s.", sendername);
  10. SendClientMessageToAll(CHANGEIT, string);
  11. SpawnPlayer(playerid);
  12. }
  13. }
  14. return 1;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment