Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: aledark24 on March 17, 2013, 07:49:17 pm
-
[pawn] else if ( strcmp( cmd, "buywep", true ) == 0 || strcmp( cmd, "comprararma", true ) == 0 )
{
tmp = strtok( cmdtext, idx );
if ( !strlen( tmp ) ) SendClientMessage( playerid, 0xFFFF00AA, "Write: /c buywep [weapon name/ID]" );
if ( !strlen( tmp ) ) SendClientMessage( playerid, 0xFFFF00AA, "Escribe: /c comprararma [nombreArma/ID]" );
else if(PlayerToPoint(7, playerid,364.11175, 1059.95654, 19.19139) || PlayerToPoint(7, playerid,-63.83909, -1477.56042, 10.44908) || PlayerToPoint(7, playerid,-673.11517, 1204.90148, 11.10896)){
new cash = GetPlayerMoney(playerid);
new wep, String[128];
if(cash >= 1000) {
SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 1000);
wep = FindWepIDFromString( tmp );
SetPlayerWeapon(playerid, wep, 1000);
DecPlayerHandCash(playerid,1000);
format( String, sizeof( String ), "Bought weapon || Compraste el arma: [%s]",NombreArmas(FindWepIDFromString(tmp)));
SendClientMessage(playerid, 0xFFFF00AA, String );
}
if(cash < 999) {
SendClientMessage(playerid,0xFFFF00AA,"Need $1000 to buy a weapon! || Necesitas $ 1000 para comprar un arma");
}
}
else
{
SendClientMessage(playerid,0xFFFF00AA,"Need to be in Ammu-Nation For buy Weapons");
SendClientMessage(playerid,0xFFFF00AA,"Necesitas estar en Ammu-Nation para comprar armas");
}
return 1;
}[/pawn]
Publics
[pawn]public NombreArmas(wep)
{
new w[256];
if (wep == 1) w = "Brass Knuckle";
if (wep == 2) w = "Screw Driver";
if (wep == 3) w = "Golf Club";
if (wep == 4) w = "Night Stick";
if (wep == 5) w = "Knife";
if (wep == 6) w = "Baseball Bat";
if (wep == 7) w = "Hammer";
if (wep == 8) w = "Cleaver";
if (wep == 9) w = "Machete";
if (wep == 10) w = "Katana";
if (wep == 11) w = "Chainsaw";
if (wep == 12) w = "Grenade";
if (wep == 13) w = "Remote Grenade";
if (wep == 14) w = "TearGas";
if (wep == 15) w = "Molotov";
if (wep == 16) w = "Missile";
if (wep == 17) w = "Colt45";
if (wep == 18) w = "Python";
if (wep == 19) w = "Shotgun";
if (wep == 20) w = "Spaz";
if (wep == 21) w = "Stubby";
if (wep == 22) w = "Tec9";
if (wep == 23) w = "Uzi";
if (wep == 24) w = "Ingrams";
if (wep == 25) w = "MP5";
if (wep == 26) w = "M4";
if (wep == 27) w = "Ruger";
if (wep == 28) w = "Sniper Rifle";
if (wep == 29) w = "Laser Scope";
if (wep == 30) w = "Rocket Launcher";
if (wep == 31) w = "Flame Thrower";
if (wep == 32) w = "M60";
if (wep == 33) w = "Minigun";
return w;
}[/pawn]
[pawn]//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
//==============================================================================[/pawn]
Mensaje en español
Para quienes se creen scripter de la pagina llena de spam llamada "comunidadpro" Creada por Dilson peralta, y que se creen con el derecho de sacar cada comando de cada usuario de este foro... y postearla libremente diciendo que es su idea, en especial el usuario "tomijaja"
Pues no son mas que noobs que no entienden las funciones de un script y sepan que aunque se crean "pro" o "scripters" no son mas que pobres diablos que no pueden hacer nada por si solos....
-
good command aledark
Mensaje en español
Para quienes se creen scripter de la pagina llena de spam llamada "comunidadpro" Creada por Dilson peralta, y que se creen con el derecho de sacar cada comando de cada usuario de este foro... y postearla libremente diciendo que es su idea, en especial el usuario "tomijaja"
Pues no son mas que noobs que no entienden las funciones de un script y sepan que aunque se crean "pro" o "scripters" no son mas que pobres diablos que no pueden hacer nada por si solos....
and tomijaja is rob commands , enter my server to insult - jaja!
NICE COMMANDS
-
Can u explain This Cmd and Function in English plZz
-
Fire_Head this commands is for buy weapon in all ammunation and his function is sell by money $ "command in english and spanish"
-
Can u explain This Cmd and Function in English plZz
This command is easy, is for buy weapons in all amu-nation and show you te name of guns
example if you write /c buywep bb
say you bought a [stubby]
and give to you a stubby whit 9999 of ammo...
better work in RPG gamemodes
if you want buy weapons like sq
-
+1.
This command would be a great help for Deathmatchers. Nice Suggesstion.