Admin Only
#1

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!
Reply
#2

Код:
if(PlayerInfo[playerid][Level] >= 2) {
for Ladmin

Код:
if(PlayerInfo[playerid][Level] >= 3)
for LuxAdmin
Reply
#3

What admin system are you using?
Reply
#4

I'm finding out this. Because I'm making this for another server.
How would I give ALL the players weapons?
Reply
#5

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
      }
}
Reply
#6

Oh yeah :P How would I make that ALL players to teleport to Area 51...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)