04.02.2012, 13:40
Hello,
I have made a command for raping people, but i want to make it save and every time we type /stats it will show them [Rapes = () And Got Raped = ]
This Is The Command.
I have made a command for raping people, but i want to make it save and every time we type /stats it will show them [Rapes = () And Got Raped = ]
This Is The Command.
Код:
CMD:rape(playerid,params[]) { new pname[24]; new opname[24]; new ID; GetPlayerName(playerid, pname, 24); new string[200]; if(gTeam[playerid] == TEAM_ILLEGAL_DRIFTERS) { if(IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid, COLOR_RED, "You cannot use this command while in a vehicle."); } if(sscanf(params, "u", ID)) { return SendClientMessage(playerid, COLOR_RED, "Usage: /rape (ID)"); } GetPlayerName(ID, opname, 24); if(ID == playerid) { return SendClientMessage(playerid, COLOR_RED, "You cannot rape yourself."); } format(string, sizeof(string), "**RAPE COMPLETE**"); SendClientMessage(playerid, COLOR_GREY, string); format(string, sizeof(string), "You have raped %s(%d).", opname, ID); SendClientMessage(playerid, COLOR_GREEN, string); new current_zone = player_zone[playerid]; //zones[current_zone][zone_name] format(string, sizeof(string), "**RAPE VICTIM**"); SendClientMessage(ID, COLOR_GREY, string); format(string, sizeof(string), "You have been raped by %s(%d). You might Get AIDS", pname, playerid); SendClientMessage(ID, COLOR_GREEN, string); format(string, sizeof(string), "%s(%d) has raped %s(%d)", pname, playerid, opname, ID); SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPVarInt(playerid, "RapeRecently", 1); SetTimer("RapeAgain", 1000*6*2, 0); format(string, 120, "[DISPATCH] %s(%d) has raped %s(%d) Location: %s", pname, playerid, opname, ID, zones[current_zone][zone_name]); SendCopMessage(string,playerid); return 1; } return 1; }