Just some cmds!!!!!!!! :D
#1

Hey guys

I am using ppc gamemode just like many. I need to create a command called /ann which announces on player screen and /aa which teleports to abandoned airfield.



IF ANYONE CAN HELP +1 REP EVEN TRY +1 REP. THANK YOU!!!!!!!!!!
Reply
#2

pawn Код:
YCMD:aa(playerid, params[], help)
{
    #pragma unused params, hep
    if(IsPlayerAdmin)//change this with your admin variable, this is for rcon only
    {
        SetPlayerPos(playerid, x, y, z);//change x, y and z with the coordinates from the abandoned airport
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 0);
    }
    else
    {
        SendClientMessage(playerid, 0xFF0000FF, "You don't have the permission to do that!");
    }
    return 1;
}
Will be back with the /ann cmd.
Reply
#3

/ann command
PHP код:
COMMAND:ann(playerid,params[])
{
    
GameTextForAll(params,1000,5);

Reply
#4

Thanks all but @digital helper . I am using zcmd and ann for admins
Reply
#5

pawn Код:
CMD:ann(playerid,params[])
{
    if(IsPlayerAdmin(playerid)){
       GameTextForAll(params,5 * 1000,5);
    }
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)