givegun and slap
#9

pawn Код:
dcmd_slap(playerid,params[])
{
    if(!PLVL[playerid]) return 0;
    new pid, moneys;
    if(PlayerInfo[playerid][pAdminLevel] >=1)
    {
        if(sscanf(params, "ud", pid, moneys)) return SendClientMessage(playerid, Yellow, "Usage: /slap <playerid>");
        if(IsPlayerConnected(pid))
        {
        new Float:Pos[3], string[128], adminname[MAX_PLAYER_NAME], paramname[MAX_PLAYER_NAME], moneys = strval(params);
        GetPlayerPos(pid,Pos[0],Pos[1],Pos[2]);
        SetPlayerPos(pid,Pos[0],Pos[1],Pos[2]+moneys);
        format(string, sizeof(string), "Admin %s has slapped %s for %d meters", adminname, paramname, moneys);
        MessageToAdmins(AdminColor, string);
        } else SendClientMessage(playerid, Red, "This player is not connected");
    } else if(PlayerInfo[playerid][pAdminLevel] == 0) return 0;
    return 1;
}
Reply


Messages In This Thread
givegun and slap - by xir - 11.01.2011, 19:07
Re: givegun and slap - by HyperZ - 11.01.2011, 19:14
Re: givegun and slap - by xir - 11.01.2011, 19:17
Re: givegun and slap - by xir - 12.01.2011, 11:58
Re: givegun and slap - by Outcast - 12.01.2011, 12:04
Re: givegun and slap - by HyperZ - 12.01.2011, 13:09
Re: givegun and slap - by xir - 12.01.2011, 16:29
Re: givegun and slap - by xir - 13.01.2011, 12:52
Re: givegun and slap - by Lorenc_ - 13.01.2011, 13:17
Re: givegun and slap - by xir - 13.01.2011, 13:22

Forum Jump:


Users browsing this thread: 2 Guest(s)