[Pomoc] Oko robbank

Započeo Zeljko26, Maj 18, 2012, 20:06:52 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: NLRP
Detaljan opis problema: Ovako kad igrac kuca u banci /robbank odmah dobije pare i ostane zamrznut.e sad kako da stavim da posle 60 sekundi opljacka
Dio skripte: komanda if(strcmp(cmd, "/robbank", true) == 0)
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 4
|| PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 1
|| PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pLeader] == 7
|| PlayerInfo[playerid][pLeader] == 9 || PlayerInfo[playerid][pLeader] == 10)
    {
SendClientMessage(playerid, COLOR_GREY, "Niste clan Bande/Mafije !");
  return 1;
}
      if(PlayerToPoint(5, playerid,2309.6060,-4.0211,26.7422))
{
if(timesrobbed[playerid] == 1)
{
    SendClientMessage(playerid, COLOR_YELLOW, "Sacekaj malo banka je skoro opljackana!");
}
if(timesrobbed[playerid] == 0)
    {
GetPlayerName(playerid, sendername, sizeof(sendername));
new robmoney = random(50000);
     ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0);
timesrobbed[playerid]+=1;
format(string,sizeof(string), "* %s vadi alat za obijanje i obija sef.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  format(string, sizeof(string), "** Opljackali ste banku i uzeli ste $%d!",robmoney);
  SetTimerEx("RobBank",60000, false, "i", playerid);
                TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid,COLOR_YELLOW,string);
GivePlayerMoney(playerid, robmoney);
format(string, sizeof(string), "** Banka je opljackana !. **", sendername);
SendClientMessageToAll(COLOR_RED, "Banka je opljackana molimo policiju da uhapsi kriminalce!");
SendRadioMessage(1, TEAM_BLUE_COLOR, string);
SendClientMessage(playerid, COLOR_RED, "Sigurnosne kamere su vas snimile !");
SetPlayerColor(playerid, 0x800000FF)
WantedPoints[playerid]+= 6; SetPlayerCriminal(playerid,255, "Robbing the Bank");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Sacekaj malo banka je skoro opljackana !");
  return 1;
}
}
return 1;
}





public
                 forward RobBank(playerid);
public RobBank(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
public CommandLog(string[])
{