Car Plates Help !
#2

try this:

pawn Код:
if(strcmp(cmd, "/tablicki", true) == 0)
{
    if(gPlayerLogged[playerid] == 0)
    {
        SCM(playerid,COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Seuste ne ste Logiran!");
    }
    else if(gPlayerLogged[playerid] == 1)
    {
        ShowPlayerDialog(playerid, 123456, DIALOG_STYLE_INPUT, "{FFFFFF}Change your vehicle number plate","{FFFFFF}Please enter your desired text for your vehicle number plate.","Set","Cancel");
    }
    return 1;
}
pawn Код:
if(dialogid == 123456)
{
    if(response)
    {
        SetVehicleNumberPlate(playerVeh, inputtext);
        GetPlayerPos(playerid, vehPos[0], vehPos[1], vehPos[2]);
        GetVehicleZAngle(playerVeh, vehPos[3]);
        SetVehicleToRespawn(playerVeh);
        SetVehiclePos(playerVeh, vehPos[0], vehPos[1], vehPos[2] );
        SetVehicleZAngle(playerVeh, vehPos[3]);
        PutPlayerInVehicle(playerid, PlayerVeh, 0);
    }
    else
    {
        SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Mora da imate tablicka!");
    }
    return 1;
}
UNTESTED!, also i put 1 line extra at the ondialogresponse, so that the player will automaticcally be put back in his car.

this should work
Reply


Messages In This Thread
Car Plates Help ! - by teomakedonija - 27.10.2012, 15:55
Re: Car Plates Help ! - by niels44 - 27.10.2012, 16:00
Re: Car Plates Help ! - by [NYO] Kael - 27.10.2012, 16:11
Re: Car Plates Help ! - by niels44 - 27.10.2012, 16:26

Forum Jump:


Users browsing this thread: 1 Guest(s)