SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 14/01/2017, 11:50 AM   #1
maicon098
Little Clucker
 
Join Date: Nov 2016
Posts: 43
Reputation: 0
Default Adicionar CMD: Jetpack

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;}
maicon098 is offline   Reply With Quote
Old 14/01/2017, 11:59 AM   #2
RazorGuigo
Banned
 
Join Date: May 2016
Location: South is my Country
Posts: 1,135
Reputation: 104
Cool Feitoria amigão!

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! -|");

RazorGuigo is offline   Reply With Quote
Old 14/01/2017, 12:30 PM   #3
viniciussvl
Big Clucker
 
viniciussvl's Avatar
 
Join Date: Aug 2014
Posts: 174
Reputation: 5
Default Re: Adicionar CMD: Jetpack

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!");
}
__________________


IP: ip.lostscavenge.com.br:7786 | Site: www.lostscavenge.com.br

Scavenge and Survive é um servidor de San Andreas Multiplayer no modo sobrevivência. Você terá que procurar suprimentos para se manter vivo e não deve confiar em ninguém, pois todos estão dispostos a mata-lo para os mesmos objetivos.

viniciussvl is offline   Reply With Quote
Old 14/01/2017, 12:33 PM   #4
RazorGuigo
Banned
 
Join Date: May 2016
Location: South is my Country
Posts: 1,135
Reputation: 104
Cool Pode não filho!

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?
RazorGuigo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] Adicionar mapas MCBAIDU Português/Portuguese 0 02/06/2015 03:40 AM
[Ajuda] adicionar um 1 mes + LocoGamer Português/Portuguese 4 05/03/2015 02:38 PM
[Ajuda] Adicionar Blindagem Vinicin Português/Portuguese 2 12/12/2013 10:11 AM
[FilterScript] RCON Jetpack - /jetpack EvanA Filterscripts 17 19/10/2013 08:16 PM
[Ajuda] Adicionar Comando brunoboy Português/Portuguese 6 24/12/2012 11:27 PM


All times are GMT. The time now is 05:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.