1. He said in the command 'CMD:kindnap',
in OnPlayerEnterRaceCheckpoint.
pawn Код:
CMD:kidnap(playerid, params[])
{
new targetid;
if(sscanf(params,"d",targetid)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /kidnap [id]");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You must be on vehicle!");
if(noexit[targetid] == 1) noexit[targetid] = 0;
noexit[targetid] = 1;
PutPlayerInVehicle(targetid, GetPlayerVehicleID(playerid), 1);
new rand = random(sizeof (NextKidnapp));
SetPlayerRaceCheckpoint(playerid, 2, NextKidnapp[rand][0], NextKidnapp[rand][1], NextKidnapp[rand][2], 0.0, 0.0, 0.0, 5.0);
SendClientMessage(targetid, COLOR_RED, "You Can Out /cutrope");
new String[128];
format(String, sizeof(String), "You kidnapped %s", pName(targetid));
GameTextForPlayer(playerid, String, 5000, 4);
//for Victim:
format(String, sizeof(String), "You kidnaped From %s", pName(playerid));
GameTextForPlayer(targetid, String, 5000, 4);
Player_NextKidnapp[playerid] = true;
return 1;
}
2. Be careful and don't make the same mistake in your /cutrope command, it should be something like this:
3. Do you realize the difference between
? I doubt that by the look of how you use them under OnPlayerEnterRaceCheckpoint.