Why this wont work :(
#1

pawn Код:
CMD:seat3(playerid, params[])
{
    new vehicleid;
    new id;
    new giveplayerid;
    if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288)
    if (sscanf(params, "u", id)) SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /Seat3 [ID]");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_RED, "[INFO]Player not found");
    else
    {
     SendClientMessage(playerid, COLOR_GOLD, "[INFO]Player Loaded succesfully");
     PutPlayerInVehicle(id,vehicleid,3);
     TogglePlayerControllable(id, 0);
     SendClientMessage(id, COLOR_GOLD,"[INFO]You have been loaded in a Police Vehicle by a APSO Officer");
     SetPlayerColor(id,COLOR_LIGHTBLUE);
     ResetPlayerWeapons(id);
    }
    return 1;
}
This should load the ID of the player in the car of the playerid, but the ID just got freezed
Reply
#2

Remove TogglePlayerControllable(id, 0); line.
Reply
#3

But it wont load anyway :/ I think and i need to freeze the player in the car
Reply
#4

Then you have to add timer to your script.
Reply
#5

The main problem is that the player wont be teleported in the car
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)