for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "{FF0000}GL {0003FF}GANG");
}
return 1;
}
CMD:nrg500(playerid, params[])
{
if(PlayerInfo[playerid][VIP] != 1) return SendClientMessage(playerid,0xD8D8D8FF,"Vocк nгo й VIP!");
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(522,X,Y,Z,0.0,-1,-1,9000000);
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "Veнculo VIP", 0xB4B5B7FF, 30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToVehicle(vehicle3Dtext, carid, 0.0,-0.0,0.5);
PutPlayerInVehicle( playerid, carid, 0) ;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleNumberPlate( carid, "{FF0000}VIP");
TogglePlayerControllable(playerid,true);
return 1;
}
CMD:nrg500(playerid, params[])
{
if(PlayerInfo[playerid][VIP] != 1) return SendClientMessage(playerid,0xD8D8D8FF,"Vocк nгo й VIP!");
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(522,X,Y,Z,0.0,-1,-1,9000000);
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "Veнculo VIP", 0xB4B5B7FF, 30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToVehicle(vehicle3Dtext, carid, 0.0,-0.0,0.5);
PutPlayerInVehicle( playerid, carid, 0) ;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
SetVehicleNumberPlate( carid, "{FF0000}VIP");
SetVehicleToRespawn(carid);
TogglePlayerControllable(playerid,true);
return 1;
}
Bom, eu jб tenho um cуdigo que seta todas as placas do servidor... Mas quando eu digito /infernus, /nrg500 (tem que ser vip para fazer isso e й um filterscript) a placa vem igual a do normal lб xvyz-000 algo assim ._.
Eu quero que quando o vip digite o nome do carro seja setada a placa VIP. Olha o que tб no GameMode: pawn Код:
Ajuda aк amores... Jб tentei o carai a 4 e nгo consegui por essa placa ._. fui atй na wiki, rs |
CMD:nrg500(playerid, params[])
{
if(PlayerInfo[playerid][VIP] != 1)
return SendClientMessage(playerid,0xD8D8D8FF,"Vocк nгo й VIP!");
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(522,X,Y,Z,0.0,-1,-1,9000000); //<-- 411 (Infernus).
SetVehicleNumberPlate(carid,"{FF0000}VIP"); // <-- Antes das funзхes abaixo. (Como: PutPlayerInVehicle).
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "Veнculo VIP", 0xB4B5B7FF, 30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToVehicle(vehicle3Dtext, carid, 0.0,-0.0,0.5);
PutPlayerInVehicle( playerid, carid, 0) ;
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
TogglePlayerControllable(playerid,true);
return 1;
}
for(new i=1; i<MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "{FF0000}GL {0003FF}GANG");
}