Need some scripting help ;/
#1

Hello guys... can some one tell me how to do like /enter to enter some where i got the Co-Ordinits done ecc.. but i can't work it out and please tell me where to place them in my gamemode i am using la-rp
Reply
#2

I dont know what admin script you are using so dont know what functions you got, also i only use zcmd and sscanf when it comes to commands.

This should work if you use zcmd and sscanf (only to rcon admin)

pawn Код:
COMMAND:ws(playerid,params[])
{
    new mes[128],str[128],playername[26];
    GetPlayerName(playerid,playername,26);
    if(sscanf(params,"s[128]",mes))return SendClientMessage(playerid,0xff0000FF,"Error usage /ws [message]");
    {
        format(str,128,"Admin message from %s: %s",playername,mes);
        for(new i: i <= MAX_PLAYERS;i++)
        {
            if(!IsPlayerConnected(i))continue;
            if(IsPlayerAdmin(i))
            {
                SendClientMessage(i,0xffff00FF,str);
                PlayerPlaySound(i,1085,0.0,0.0,0.0);
            }
        }
    }
    return 1;
}

EDIT: SHIT WRONG TOPIC SORRY
Reply
#3

no problem =]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)