ID's problem
#3

pawn Код:
dcmd_rape(playerid, params[])
{
    if(!strlen(params)) return SendClientMessage(playerid, RED, "Usage: /rape [Player ID]");
    new ID = strval(params);
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, RED, "That player is not connected!");
    if(ID == playerid) return SendClientMessage(playerid, RED, "You cannot rape yourself!");
    if(GetClosestPlayerToPlayer(playerid,ID) > RAPE_DISTANCE) return SendClientMessage(playerid, RED, "No One Close Enough To Rape.");
    if(rapespam[playerid] == 0)
    {
        if(GetDistanceBetweenPlayers(playerid,ID) > RAPE_DISTANCE) return SendClientMessage(playerid, RED, "You Are Not Close Enough To Rape The Player.");
        if(GetClosestPlayerToPlayer(playerid,ID) > RAPE_DISTANCE) return SendClientMessage(playerid, RED, "No One Close Enough To Rape.");
    }
    // Other code you have here...
    return 1;
}
Reply


Messages In This Thread
ID's problem - by RandomDude - 06.09.2013, 15:24
Re: ID's problem - by RandomDude - 06.09.2013, 21:34
Re: ID's problem - by Dragonsaurus - 06.09.2013, 21:39

Forum Jump:


Users browsing this thread: 2 Guest(s)