Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: MatheuS on July 25, 2012, 01:33:57 am
-
I want to put a help! buywep stores my server can you help me put?
-
[pawn] else if(strcmp(cmd,"buycolt",true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
new cash;
cash = GetPlayerMoney(playerid);
if(strcmp(param,"buycolt",true) == 0)
if(cash >= 1500)
{
SetPlayerWeapon(playerid,17,200);
SendClientMessage(playerid,RED,"Compraste una colt");
DecPlayerHandCash(playerid,1500);
}[/pawn]
this command give to you a colt you change the name of command and SetplayerWeapon example
[pawn] else if(strcmp(cmd,"buyuzi",true) == 0)
{
new param[256];
param = strtok(cmdtext,idx);
new cash;
cash = GetPlayerMoney(playerid);
if(strcmp(param,"buyuzi",true) == 0)
if(cash >= 1500)
{
SetPlayerWeapon(playerid,23,200);
SendClientMessage(playerid,RED,"Compraste una uzi");
DecPlayerHandCash(playerid,1500);
}[/pawn]
-
gracias aledark my soy Matheus_br q entras en el sv
-
;D ;D ;D ;D 8) 8) 8) 8)