[Help] One code for two commands
#1

Hello , i want to ask that can i set 1 code for 2 commands (in the same line ) . e.g
PHP Code:
if(!strcmp(cmdtext"/hide"))
     {
        
SetPlayerMarkerForPlayer4210xFFFFFF00 );
        return 
1;
     } 
Now if i want to set the same function of /hide to /invisible can i?

In the same line not in another one (in (cmdtext, "/hide"))

If yes then tell me how in CMD: not in that one.
Reply
#2

pawn Code:
CMD:hide(playerid, params[])
 {
        SetPlayerMarkerForPlayer( 42, 1, 0xFFFFFF00 );
        return 1;
  }  
CMD:invisible(playerid, params[]) return cmd_hide(playerid, params);
Reply
#3

Thanks +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)