Vehicle Help
#7

pawn Код:
CMD:vplate(playerid, params[])
{
    new inputtext;
    if(sscanf(params, "d", inputtext)) return SendClientMessage(playerid, -1, "USAGE: /vplate [text]");
    new id = GetPlayerVehicleID(playerid);
    new vehicleid = VehicleID[id];
    strmid(VehicleNumberPlate[id], inputtext, 0, sizeof(VehicleNumberPlate[]), 255);
    SaveVehicle(id);
    SetVehicleNumberPlate(id, inputtext);
    SetVehicleToRespawn(vehicleid);
    new msg[128];
    format(msg, sizeof(msg), "You have changed vehicle number plate to %s", inputtext);
    SendClientMessage(playerid, -1, msg);
    return 1;
}
Hope this will work
Reply


Messages In This Thread
Vehicle Help - by UnknownGamer - 24.09.2012, 01:54
Re: Vehicle Help - by clarencecuzz - 24.09.2012, 02:50
Re: Vehicle Help - by Danyal - 24.09.2012, 03:13
Re: Vehicle Help - by UnknownGamer - 24.09.2012, 03:14
Re: Vehicle Help - by Akira297 - 24.09.2012, 03:25
Re: Vehicle Help - by UnknownGamer - 24.09.2012, 03:28
Re: Vehicle Help - by Danyal - 24.09.2012, 03:32
Re: Vehicle Help - by UnknownGamer - 24.09.2012, 03:46
Re: Vehicle Help - by clarencecuzz - 24.09.2012, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)