24.07.2011, 18:53
Hello people, leaves the board came to Portugal for help in America, someone could help me that when the guy gets up in the VIP vehicle was injected and he said, and you are not a VIP!
Below is my code of the VIP vehicle.
Below is my code of the VIP vehicle.
pawn Код:
CMD:vhydra(playerid, params[])
{
if(PlayerInfo[playerid][VIP] != 1) return SendClientMessage(playerid,0xD8D8D8FF,".::[INFO] 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(550,X,Y,Z,0.0,-1,-1,9000000);
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "Veiculo 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;
}