30.12.2011, 17:36
So do you want if you type only "/rape" it will rape the closest but if you type "/rape ID" it will rape that person? Then this should work
pawn Код:
dcmd_rape(playerid,params[])
{
new string[128];
new ID;
new Float:phealth;
GetPlayerHealth(ID,phealth);
if(sscanf(params, "u", ID)) ID = GetClosestPlayerToPlayer(playerid);
//Rest code ... if(IsSpawned[playerid] != 1)
}