23.09.2014, 16:34
(
Последний раз редактировалось XStormiest; 23.09.2014 в 17:09.
)
pawn Код:
CMD:rape(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /rape [Part of Name/Player ID]");
new Float:x, Float:y, Float:z;
GetPlayerPos(targetid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z)) {
new string[500];
SetPlayerHealth(playerid, 0);
new target[MAX_PLAYER_NAME];
GetPlayerName(targetid, target, sizeof(target));
format(string, sizeof(string), "INFO: You have rape %s!",target);
PlayerTimer[targetid] = SetTimerEx("Rape",3000,true,"i",targetid); }
else SendClientMessage(playerid, COLOR_RED, "Your message here if player is not near target!");
return 1;
}
CMD:cure(playerid, params[])
{
new targetid;
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_RED, "[USAGE]: /cure [Part of Name/Player ID]");
KillTimer(Rape[targetid]);
SetPlayerHealth(targetid, 100);
return 1;
}
Try this one.
Just say if you have more problems, These are just some fews I managed to see and quicly fix them.
EDIT: I did many edits, as I saw more and more mistakes, hope this will work now.

