05.09.2012, 20:43
Ola eu queria saber como eu coloco para pegar essa arma toda hora mas nгo repetindo sу quando acabar a bala ou morrer EX: /lancamissel peguei 5 depois digito de novo e fico com 5 ainda como faco e sem esse negocio de tempo
pawn Код:
if(strcmp(cmd, "/lancamissel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(missell[playerid] == 1)
{
MSGPLAYER(playerid, COLOR_GREY, "Vocк jб usou o seu Lanзa Missel espere 1 hora para pegar-lo novamente!");
return 1;
}
if(PlayerToPoint(10.0, playerid,1550.4318,21.8126,24.1406) || PlayerToPoint(10.0, playerid,2743.7583,-2453.7629,13))
{
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15 || PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
GivePlayerWeapon(playerid, 35, 1);
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), " O Terrorista %s pegou seu Lanзa Missel.", sendername, playerid);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
missell[playerid] = 1;
SetTimerEx("misel",3600000,0,"d",playerid);
return 1;
}
}
}
return 1;
}