Admin Only - 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: Admin Only (
/showthread.php?tid=176598)
Admin Only -
SampStunta - 13.09.2010
Hey guys!
I'm just wondering how to make this:
Код:
#include <a_samp>
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/startevent", cmdtext, true))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
PlayerPlaySound(i,1057,0.0,0.0,0.0);
GivePlayerWeapon(i,31,350);
GivePlayerWeapon(i,24,350);
GivePlayerWeapon(i,26,350);
GivePlayerWeapon(i,27,350);
}
}
return 1;
}
return 0;
}
Into an Admin Level 2+ ONLY command?
Thanks guys!
Re: Admin Only -
Snipa - 13.09.2010
Код:
if(PlayerInfo[playerid][Level] >= 2) {
for Ladmin
Код:
if(PlayerInfo[playerid][Level] >= 3)
for LuxAdmin
Re: Admin Only -
Kevin_Joshen - 13.09.2010
What admin system are you using?
Re: Admin Only -
SampStunta - 13.09.2010
I'm finding out this. Because I'm making this for another server.
How would I give ALL the players weapons?
Re: Admin Only -
CuervO - 14.09.2010
You already did it, the loop, the check and the give.
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GivePlayerWeapon(i, weapon, ammo); //change weapon and ammo
}
}
Re: Admin Only -
SampStunta - 14.09.2010
Oh yeah :P How would I make that ALL players to teleport to Area 51...