22.10.2013, 22:19
Hello samp members
i made some changes from the code i got by a samp member
that is a string and when i get wanted level 4
it types [WANTED LEVEL INCREASED]You have stolen a police vehicle your wanted level has increased to:0
it types 0 when it needs to type 4
Here is my code:
i made some changes from the code i got by a samp member
that is a string and when i get wanted level 4
it types [WANTED LEVEL INCREASED]You have stolen a police vehicle your wanted level has increased to:0
it types 0 when it needs to type 4
Here is my code:
pawn Код:
if (GetVehicleModel(GetPlayerVehicleID(playerid)) >= 596 && GetVehicleModel(GetPlayerVehicleID(playerid)) <= 599)
{
if(gTeam[playerid] != Team_Cop)
{
new string[120];
SendClientMessage(playerid,COLOR_YELLOW,"You have stolen a police vehicle the police is after you...");
format(string,sizeof(string),"[WANTED LEVEL INCREASED]You have stolen a police vehicle your wanted level has increased to:%i",GetPlayerWantedLevel(playerid),playerid);
SendClientMessage(playerid,COLOR_ORANGE,string);
format(string,sizeof(string),"{435FFA}%s(%d) Has stolen a LSPD Vehicle his wanted now go arrest him!", GetName(playerid),playerid);
SendClientMessageToAllCops(string);
IncreaseWantedLevel(playerid, 4);
}
}