Need someone's help to fix Errors in roleplay server
#9

Try this:

pawn Код:
#include <zcmd>
CMD:frisk(playerid, params[])
{
    new giveplayerid;
    if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Usage: /frisk [playerid]");
    {
        if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "Player not connected.");
        if(!ProxDetectorS(8.0, playerid, giveplayerid)) return SendClientMessage(playerid, COLOR_GREY, "That player is not near you!");
       
        FriskOffer[giveplayerid] = playerid;
        format(st, sizeof(st), "** %s wants to frisk you, type '/accept frisk' to allow it", PlayerName(playerid));
        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, st);
       
        format(st2, sizeof(st2), "** You've offered to frisk %s",PlayerName(giveplayerid));
        SendClientMessage(playerid, COLOR_LIGHTBLUE, st2);
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)