14.01.2017, 11:50
Bom, queria adicionar jetpack no meu sistema vip.
MODELO DO MEU SISTEMA VIP,(TEM QUE SER NESSE ESTILO PRA FUNCIONAR)
MODELO DO MEU SISTEMA VIP,(TEM QUE SER NESSE ESTILO PRA FUNCIONAR)
Code:
CMD:hydra(playerid, params[]) { if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, COLOR_RED, VIPERROR); if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Bronze V.I.P"; } else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Silver V.I.P"; } else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Gold V.I.P"; } new name[24], string[250]; new Float:x, Float:y, Float:z, Float:Angle; GetPlayerPos(playerid, x,y,z); GetPlayerFacingAngle(playerid, Angle); GetPlayerName(playerid, name, sizeof(name)); new vehicleid; vehicleid= GetPlayerVehicleID(playerid); DestroyVehicle(vehicleid); format(string, sizeof(string), "%s's Hydra",name); vehicle_id = CreateVehicle( 520, x, y, z, Angle, 0,0, 120 ); vehicle3Dtext[ vehicle_id ] = Create3DTextLabel(string, COLOR_LRED, 0.0, 0.0, 0.0, 50.0, 0, 1 ); Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0); PutPlayerInVehicle(playerid, vehicle_id, 0); SendClientMessage(playerid, COLOR_VIP, "|- You have sucessfully spawned a Hydra! -|"); SendVIPMessage(playerid, "HYDRA"); return 1; CMD:vnos(playerid, params[]) { if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, COLOR_RED, VIPERROR); if(PlayerInfo[playerid][pVipLevel] == 1) { vrank = "Bronze V.I.P"; } else if(PlayerInfo[playerid][pVipLevel] == 2) { vrank = "Silver V.I.P"; } else if(PlayerInfo[playerid][pVipLevel] == 3) { vrank = "Gold V.I.P"; } if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "[ERROR]: You are not in a vehicle"); AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); SendClientMessage(playerid, COLOR_VIP, "|- You have sucessfully added nitro to your vehicle! -|"); SendVIPMessage(playerid, "NITRO"); return 1;}