Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function serverCmdForceSpawn(%client, %entry)
- {
- if(%client.isAdmin)
- {
- %target = findClientByName(%entry);
- if(isObject(%target) && !isObject(%target.player))
- {
- %target.instantrespawn();
- messageClient(%client, 0, "\c6You respawned\c3" SPC %target.getPlayerName() @ "\c6.");
- }
- else
- {
- if(isObject(%target.player))
- {
- messageClient(%client, 0, "\c3" @ %target.getPlayerName() SPC "\c6appears to be spawned already.");
- }
- else if(!isObject(%target))
- {
- messageClient(%client, 0, "\c6Can't find any user with the name of\c3" SPC %entry @ "\c6.");
- }
- }
- }
- else
- {
- messageClient(%client, 0, "\c6You must be an admin or higher to use this command!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement