06.07.2014, 18:24
Arrest command: Look this:
Rape:
pawn Код:
if(GetPlayerWantedLevel(CriminalID) >= 3)
Rape:
pawn Код:
pInfo[playerid][Diseases] = rand;
// No, this: ->
pInfo[targetid][Diseases] = rand;
// and not:
switch(rand)
{
case 0: SendClientMessage(playerid, COLOR_GREY, "You are lucky this time, you didn't get any STDs!");
case 1: SendClientMessage(playerid, COLOR_GREY, "You received an HIV. Go to the hospital, quickly to get it cured.");
case 2: SendClientMessage(playerid, COLOR_GREY, "You received Syphilis. Go to the hospital, quickly to get it cured.");
case 3: SendClientMessage(playerid, COLOR_GREY, "You received the Crazy Chicken Flu. Go to the hospital, quickly to get it cured.");
case 4: SendClientMessage(playerid, COLOR_GREY, "You received Mad Cow Disease. Go to the hospital, quickly to get it cured.");
}
// but this:
switch(rand)
{
case 0: SendClientMessage(targetid, COLOR_GREY, "You are lucky this time, you didn't get any STDs!");
case 1: SendClientMessage(targetid, COLOR_GREY, "You received an HIV. Go to the hospital, quickly to get it cured.");
case 2: SendClientMessage(targetid, COLOR_GREY, "You received Syphilis. Go to the hospital, quickly to get it cured.");
case 3: SendClientMessage(targetid, COLOR_GREY, "You received the Crazy Chicken Flu. Go to the hospital, quickly to get it cured.");
case 4: SendClientMessage(targetid, COLOR_GREY, "You received Mad Cow Disease. Go to the hospital, quickly to get it cured.");
}