Admin Commands - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin Commands (
/showthread.php?tid=442326)
Admin Commands -
lramos15 - 06.06.2013
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?
Re: Admin Commands -
Guest123 - 06.06.2013
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;
}
Re: Admin Commands -
lramos15 - 07.06.2013
How would I make a slap kick freeze mute and banned command also a spectate
Re: Admin Commands -
DobbysGamertag - 07.06.2013
There's plenty of tutorials about
![Smiley](images/smilies/smile.png)
If you want to learn you can start there.
Otherwise, here's a good script:
http://pastebin.com/ztLTmcyN
not mine.