SA-MP Forums Archive
Just some cmds!!!!!!!! :D - 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)
+--- Thread: Just some cmds!!!!!!!! :D (/showthread.php?tid=410362)



Just some cmds!!!!!!!! :D - shoaib_sait - 25.01.2013

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!!!!!!!!!!


Re: Just some cmds!!!!!!!! :D - DiGiTaL_AnGeL - 25.01.2013

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.


Re: Just some cmds!!!!!!!! :D - SAMPHacker - 25.01.2013

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




Re: Just some cmds!!!!!!!! :D - shoaib_sait - 25.01.2013

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


Re: Just some cmds!!!!!!!! :D - xMCx - 25.01.2013

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