Problem with this cmd:
#7

try
pawn Код:
CMD:rape(playerid, params[])
{
    new id;
    if(gTeam[playerid] == TEAM_COP) return SendClientMessage(playerid, red, "Cops can't rape other players!");
    if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,red,"You can't rape a player if you are in a vehicle!");
    if(IsSpawned[playerid] == 0) return SendClientMessage(playerid,0xFF0000FF,"You can't use this command when you are dead or spawning.");
    if(GetPVarInt(playerid,"RapeTime")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"Please wait 10 seconds before rape again.");
    if (GetDistanceBetweenPlayers(playerid,id)>2) return SendClientMessage(playerid, red, "You are NOT near something to attempt to rape");
    if(GetDistanceBetweenPlayers(playerid,id)<2)
    {
        SendClientMessage(playerid, COLOR_WHITE, "Raped player.");
        SetPVarInt(playerid,"RapeTime",GetTickCount()+10000);
    }
    return 1;
}
Reply


Messages In This Thread
Problem with this cmd: - by Face9000 - 10.02.2012, 22:31
Re: Problem with this cmd: - by Tanush123 - 10.02.2012, 22:32
Re: Problem with this cmd: - by Face9000 - 10.02.2012, 22:34
Re: Problem with this cmd: - by [LoF]Zak - 10.02.2012, 22:39
Re: Problem with this cmd: - by Tanush123 - 10.02.2012, 22:42
Re: Problem with this cmd: - by Face9000 - 10.02.2012, 22:50
Re: Problem with this cmd: - by Tanush123 - 10.02.2012, 22:53
Re: Problem with this cmd: - by Face9000 - 10.02.2012, 23:04
Re: Problem with this cmd: - by Tanush123 - 10.02.2012, 23:21
Re: Problem with this cmd: - by Face9000 - 10.02.2012, 23:25

Forum Jump:


Users browsing this thread: 1 Guest(s)