16.08.2013, 11:54
I use for random STD's
But when i do /rape in game it say ExampleA(0) has grabbed ExampleB(1) and Infected them with.
It doesn't write any of the randoms
pawn Код:
new STDs[5][] =
{
"Chlamydia",
"Gonorrhea",
"Syphyllis",
"Hepatitis B",
"STD"
};
pawn Код:
new randstd =random(sizeof(STDs));
if(gTeam[playerid] == TEAM_RAPIST)
{
format(string,sizeof(string),"You have grabbed %s(%d) and Infected them with %s!",PlayerName(ID),ID,randstd);
SendClientMessage(playerid,COLOR_ORANGE,string);
HasRapedRecently[playerid] =120;
format(string,sizeof(string),"%s(%d) has grabbed you and infected you with %s!",PlayerName(playerid),playerid,randstd);
SendClientMessage(ID,COLOR_ORANGE,string);
IncreaseWantedLevel(playerid,4);
IncreasePlayerScore(playerid,2);
format(string,sizeof(string),"[INFECTION] %s(%d) has grabbed %s(%d) and Infected them with %s!.",PlayerName(playerid),playerid,PlayerName(ID),ID,randstd);
SendClientMessageToAll(COLOR_ORANGE,string);
return 1;
}
It doesn't write any of the randoms