Thanks btw its work i know how to do it i owe one bro .
but maby you can help me with this how i can make this checkpoint accept swat member so what i mean when swat member do /drag (id) he will be cuffed in vehicle now when he enter the checkpooint and the suspect with him send text say
Swat-Member blabla(1) Has Dragged And Handed balfaj(2) ....
Код:
if(getCheckpointType(playerid) == 50 && getCheckpointType(playerid) == 50)
{
if(gTeam[playerid] == 1 || gTeam[playerid] == 2 || gTeam[playerid] == 3 || gTeam[playerid] == 4 || gTeam[playerid] == 5) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"This is where wanted suspects can hand themselves into the police");
SendClientMessage(playerid,0x00C7FFAA,"Also Swat-Members can hand suspect at here");
return 1;
}
if(GetPlayerWantedLevel(playerid) == 0) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"This is where wanted suspects can hand themselves into the police swat only can hand players here - You are innocent");
}
new wantedsuspect[25];
GetPlayerName(playerid,wantedsuspect,25);
if(GetPlayerWantedLevel(playerid) == 1) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $500. Your wanted level has been reduced");
format(string, sizeof(string), "~w~You have been fined~n~ ~b~$500");
GameTextForPlayer(playerid, string,5000,3);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(playerid, -500);
printf("%s(%d) has been fined $500 at lvpd hq",wantedsuspect,playerid);
return 1;
}
if(GetPlayerWantedLevel(playerid) == 2) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $1000. Your wanted level has been reduced");
format(string, sizeof(string), "~w~You have been fined~n~ ~b~$1000");
GameTextForPlayer(playerid, string,5000,3);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(playerid, -1000);
printf("%s(%d) has been fined $1000 at lvpd hq",wantedsuspect,playerid);
return 1;
}
if(GetPlayerWantedLevel(playerid) == 3) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,COLOR_DODGERBLUE,"Las Venturas Police Department has fined you $2000. Your wanted level has been reduced");
format(string, sizeof(string), "~w~You have been fined~n~ ~b~$2000");
GameTextForPlayer(playerid, string,5000,3);
SetPlayerWantedLevel(playerid,0);
GivePlayerMoney(playerid, -2000);
printf("%s(%d) has been fined $2000 at lvpd hq",wantedsuspect,playerid);
return 1;
}
if(EscapedConvict[playerid] == 1 && GetPlayerWantedLevel(playerid) >=10) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been sent to Alcatraz");
SetPlayerInterior(playerid,10);
new rnd;
rnd = random(sizeof (AlcatrazArrestedSpawn));
SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
format(string, sizeof(string), "Escaped Convict %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
format(string, sizeof(string), "Escaped Convict %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
InAlcatraz[playerid] =1;
StoleCopCarRecent[playerid] =0;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =300;
JailTimeServed[playerid] =0;
EscapedConvict[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) >= 4 && GetPlayerWantedLevel(playerid) <= 5) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
new rnd;
rnd = random(sizeof (ArrestedSpawn));
SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
SetPlayerInterior(playerid,3);
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =60;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) >=6 && GetPlayerWantedLevel(playerid) <=9) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
new rnd;
rnd = random(sizeof (ArrestedSpawn));
SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
SetPlayerInterior(playerid,3);
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =160;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) == 9) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
new rnd;
rnd = random(sizeof (ArrestedSpawn));
SetPlayerPos(playerid, ArrestedSpawn[rnd][0], ArrestedSpawn[rnd][1], ArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, ArrestedSpawn[rnd][3]);
SetPlayerInterior(playerid,3);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from jail or a Police Officer/Jail Turnkey can release you early");
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
format(string, sizeof(string), "Wanted suspect %s(%d) has handed himself into LVPD and has been detained by police",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =200;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) >=10 && GetPlayerWantedLevel(playerid) <=14) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
SetPlayerInterior(playerid,10);
new rnd;
rnd = random(sizeof (AlcatrazArrestedSpawn));
SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
InAlcatraz[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =280;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) >=15 && GetPlayerWantedLevel(playerid) <=24) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
SetPlayerInterior(playerid,10);
new rnd;
rnd = random(sizeof (AlcatrazArrestedSpawn));
SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
InAlcatraz[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =320;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
return 1;
}
if(GetPlayerWantedLevel(playerid) >=25) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Las Venturas Police Department_|");
SendClientMessage(playerid,0x00C7FFAA,"You have given yourself into the police. You have been detained");
SetPlayerInterior(playerid,10);
new rnd;
rnd = random(sizeof (AlcatrazArrestedSpawn));
SetPlayerPos(playerid, AlcatrazArrestedSpawn[rnd][0], AlcatrazArrestedSpawn[rnd][1], AlcatrazArrestedSpawn[rnd][2]);
SetPlayerFacingAngle(playerid, AlcatrazArrestedSpawn[rnd][3]);
SendClientMessage(playerid,0x00C7FFAA,"You will be auto-released from Alcatraz once you have served your sentence");
SendClientMessage(playerid,0x00C7FFAA,"If Alcatraz life sucks for you... Why not ask a friend to visit you? /reqvisit (id)");
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LSPD and has been sent to Alcatraz",wantedsuspect,playerid);
SendClientMessageToAll(0x00C7FFAA, string);
format(string, sizeof(string), "Most Wanted suspect %s(%d) has handed himself into LVPD and has been sent to Alcatraz",wantedsuspect,playerid);
printf("%s", string);
SendClientMessage(playerid,0xFF7F50AA,"If you leave the server while you are in jail you WILL be banned");
Jailed[playerid] =1;
InAlcatraz[playerid] =1;
StoleCopCarRecent[playerid] =0;
cannotescapejail[playerid] =1;
triedtoescaperecent[playerid] =1;
ResetPlayerWeapons(playerid);
JailTime[playerid] =420;
JailTimeServed[playerid] =0;
SetPlayerWantedLevel(playerid,0);
oscore = GetPlayerScore(playerid);
SetPlayerScore(playerid, oscore +1);
}
return 1;
}