Admin Commands
#1

Does anyone know a tutorial for some useful admin commands such as slap kick ban mute etc with zcmd or can someone tell me how to make them?
Reply
#2

pawn Код:
CMD:sync(playerid, params[])
{
if(//your Player Variable Here [playerid][//your variable here] < 1 && !IsPlayerAdmin( playerid ) ) return SendClientMessage(playerid, -1,"You must be a level 1 Vip to use this command");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+2);
TogglePlayerControllable(playerid,1);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, -1,"You Was Sync By System");
return 1;
}
so it be

pawn Код:
CMD:sync(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 1 && !IsPlayerAdmin( playerid ) ) return SendClientMessage(playerid, -1,"You must be a level 1 Vip to use this command");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+2);
TogglePlayerControllable(playerid,1);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, -1,"You Was Sync By System");
return 1;
}
or

pawn Код:
CMD:sync(playerid, params[])
{
if(pInfo[playerid][pAdmin] < 1 && !IsPlayerAdmin( playerid ) ) return SendClientMessage(playerid, -1,"You must be a level 1 Vip to use this command");
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
SetPlayerPos(playerid,x,y,z+2);
TogglePlayerControllable(playerid,1);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, -1,"You Was Sync By System");
return 1;
}
Reply
#3

How would I make a slap kick freeze mute and banned command also a spectate
Reply
#4

There's plenty of tutorials about If you want to learn you can start there.

Otherwise, here's a good script: http://pastebin.com/ztLTmcyN

not mine.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)