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


Messages In This Thread
Why this wont work :( - by Gooday - 18.02.2012, 18:22
Re: Why this wont work :( - by iZN - 18.02.2012, 18:23
Re: Why this wont work :( - by Gooday - 18.02.2012, 18:25
Re: Why this wont work :( - by iZN - 18.02.2012, 18:29
Re: Why this wont work :( - by Gooday - 18.02.2012, 19:44

Forum Jump:


Users browsing this thread: 1 Guest(s)