/GiveRpp
#4

pawn Код:
dcmd_giverpp(playerid,params[])
{
    if(PlayerInfo[playerid][Level] >= 3)
    {
        new tmp2[256], Index, player1;
        tmp = strtok(params,Index)
        player1 = strval(tmp);
        if(!strlen(tmp)) return SendClientMessage(playerid, red, "USAGE: /giverpp [playerid]");
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            CMDMessageToAdmins(playerid,"GIVERPP");
            PlayerData[player1][Rpp]++;
            format(string, sizeof(string), "You have given a Roleplay Point To \"%s\"", PlayerName2(player1);
            SendClientMessage(playerid,yellow,string);
            if(player1 != playerid)
            {
                format(string,sizeof(string),"Administrator \"%s\" has given you a Roleplay Point", PlayerName2(playerid);
                SendClientMessage(player1,yellow,string);
                PlayerData[playerid][Rpp]++;
            }
        } else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
    return 1;
}
Reply


Messages In This Thread
/GiveRpp - by [TDL]OGLoc - 07.01.2011, 19:15
Respuesta: /GiveRpp - by [M]xFire - 07.01.2011, 20:09
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 20:20
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:15
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 21:30
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:38
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 21:47
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 21:53
Re: /GiveRpp - by [TDL]OGLoc - 08.01.2011, 22:00
Respuesta: /GiveRpp - by [M]xFire - 08.01.2011, 22:10

Forum Jump:


Users browsing this thread: 1 Guest(s)