Pliz give my - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pliz give my (
/showthread.php?tid=152240)
Pliz give my -
Zeros - 03.06.2010
Can you give a command that we should
1.Admin on admin duty of duty, admin on duty can be seen on the map
2.Vehicle streamer
3.good anticheat
4.NPC make on how APP or make NPC on FS
sory for my bad english
Re: Pliz give my -
DJDhan - 03.06.2010
SEARCH
But yea for the first question:
First add a variable in your Player Info enum (if you use one)
Код:
if(!strcmp(cmdtext,"/onduty",true,7)==0)
{
if(!PlayerInfo[playerid][AdminLevel>0) return SendClientMessage(playerid,0xffffffaa,"You are not an Admin"); //use your varaibles here
PlayerInfo[playerid][onduty]=1; //here too
return SendCleintMessage(playerid,0xffffffaa,"You are now on Admin Duty.");
//You can't remove one guys PlayerMarker from the mini-map afaik
}
If you use DCMD
DCMD version:
Код:
dcmd_onduty(playerid,params[])
{
if(!PlayerInfo[playerid][AdminLevel>0) return SendClientMessage(playerid,0xffffffaa,"You are not an Admin"); //use your varaibles here
PlayerInfo[playerid][onduty]=1; //here too
return SendCleintMessage(playerid,0xffffffaa,"You are now on Admin Duty.");
//Then under OnPlayerCommandTExt function
dcmd(onduty,6,cmdtext);
}