Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- }
- Under - OnPlayerRequestClass
- SetSpawnInfo(playerid,0,285,2046.4080,-1898.3741,13.5538,216.4919,0,0,0,0,0,0);
Advertisement
Add Comment
Please, Sign In to add comment