[Help](Checkpoints Not Disable)And not Reward
#7

Quote:
Originally Posted by [KHK]Khalid
Посмотреть сообщение
1. He said in the command 'CMD:kindnap', not 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:

pawn Код:
CMD:cutrope(playerid, params[])
{
    // code here
    Player_NextKidnapp[playerid] = false;
    // more code here?

    return 1;
}
3. Do you realize the difference between Player_NextKidnapp[playerid] and Player_NextKidnapp{playerid}? I doubt that by the look of how you use them under OnPlayerEnterRaceCheckpoint.
Still Not Working.....
im in checkpoints and not take the money or wanted or the kidnaped dead still not fixed :/
Atklm 3rby 3adi
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)