[Tutorial] /cuff and /uncuff Tutorial (sscanf)+(ZCMD)
#21

Quote:
Originally Posted by RyderX
Посмотреть сообщение
Ye so it'll be like this:

PHP код:
CMD:admin(playerid,params[])
{
      if(
IsPlayerAdmin(playerid)
      {
          
SendClientMessageToAll(0xf8f8f8fff,"he is an admin");
      }
      else
      {
       
SendClientMessage(playerid,0xf8f8f8888,"You aren't an RCON Admin to access to this shit");
      }
      return 
1;

Thanks!
Reply
#22

C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\CuffAndUncuff.pwn( : error 017: undefined symbol "gTeam"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\CuffAndUncuff.pwn( : warning 215: expression has no effect
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\CuffAndUncuff.pwn( : error 001: expected token: ";", but found "]"
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\CuffAndUncuff.pwn( : error 029: invalid expression, assumed zero
C:\Users\Ryo.Ryo-PC\Documents\samp037_svr_R2-1-1_win32\filterscripts\CuffAndUncuff.pwn( : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




What Is This?
Reply
#23

I would just loop through all players and would check if any body is in range or not.. Instead of the id parameter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)