[ajuda & bug]
#2

pawn Код:
new level[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
 level += 4;// level 4 :D
 return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/Arma", true) == 0)
{
 if(level == 6)// Level Que precisa para comprar a arma
 {
 GivePlayerWeapon(playerid,34,1000); // rifle sniper
//GivePlayerWeapon(playerid,ID DA ARMA ,Muniзгo);
 }
 else
 {
 SendClientMessage(playerid,COR," Vocк nгo tem level para Comprar esta arma");
 }
 return 1;
}
return 0;
}
Tente.
Reply


Messages In This Thread
[ajuda & bug] - by maluku102 - 03.08.2010, 20:28
Re: [ajuda & bug] - by zSuYaNw - 04.08.2010, 00:10
Re: [ajuda & bug] - by maluku102 - 04.08.2010, 06:44

Forum Jump:


Users browsing this thread: 3 Guest(s)