Adicionar CMD: Jetpack
#1

Bom, queria adicionar jetpack no meu sistema vip.

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;}
Reply
#2

PHP Code:
CMD:hydra(playeridparams[])
{
    if(
PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playeridCOLOR_REDVIPERROR);
    
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
    return 
SendClientMessage(playeridCOLOR_VIP"|- You have sucessfully spawned a Jetpack! -|");

Reply
#3

Sу traduzi do colega acima:

pawn Code:
CMD:jetpack(playerid, params[])
{
    if(PlayerInfo[playerid][pVipLevel] < 3) return SendClientMessage(playerid, COLOR_RED, VIPERROR);
    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USEJETPACK);
    return SendClientMessage(playerid, COLOR_VIP, "[ > ] Vocк pegou o Jetpack Vip!");
}
Reply
#4

Quote:
Originally Posted by viniciussvl
View Post
Sу traduzi...
inъtil seu tуpico cara!, sу fez isso para ganhar post,
n leu q ele ta com um servidor em inglкs?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)