[pomoc]robhall


Započeo Arnel_Bp, Jun 14, 2014, 21:25:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: moja od 0
Detaljan opis problema: Pa gledo sam iz jednoga gamemode-a skriptu za city hall da se opljacka... ali evo nesto sam uradio ali nisam uspjeo kada kucam na checkpioint /robhall jedino mi pise ako sam fail, a nece da zapocne da pljacka... kao sto sam definisao... sta bi mu moglo znaciti..
Dio skripte:
CMD:robhall(playerid, params[])
{
	new string[126];
  	if(Ulogiran[playerid] == 0) return SendClientMessage(playerid, 0xFF0000FF, "Nisi ovlascen da koristis ovu komandu");
  	if(gTeam[playerid] == TEAM_COP) return SendClientMessage(playerid, 0xFF0000FF, "Nisi ovlascen da koristis ovu komandu");
    if(gTeam[playerid] == TEAM_ARMY) return SendClientMessage(playerid, 0xFF0000FF, "Nisi ovlascen da koristis ovu komandu");
    if(gTeam[playerid] == TEAM_SWAT) return SendClientMessage(playerid, 0xFF0000FF, "Nisi ovlascen da koristis ovu komandu");
    if(gTeam[playerid] == TEAM_FBI) return SendClientMessage(playerid, 0xFF0000FF, "Nisi ovlascen da koristis ovu komandu");
    if(!IsPlayerInCheckpoint(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "Ti nisi na mjestu gde se moze opljackati City Hall");
	if(IsPlayerInCheckpoint(playerid) && getCheckpointType(playerid) != 9) return SendClientMessage(playerid, 0xFF0000FF, "Ti nisi na mjestu gde se moze opljackati City Hall");
    if(cityhallrobbedrecent >= 1) return SendClientMessage(playerid,0xFF0000FF,"City Hall je nedavno opljackan, pokusaj ponovo kasnije...");
	new challrand = random(100);
 	if(challrand >=0 && challrand <=10)
	{
 	SendClientMessage(playerid,-1,"Tvoj pokusaj da opljackas City Hall nije uspjeo");
    if(challrand >=11 && challrand <=100)
	{
	new hallrobbber[30];
	new pcol = GetPlayerColor(playerid);
	GetPlayerName(playerid,hallrobbber,30);
	new plwl = GetPlayerWantedLevel(playerid);
	SetPlayerWantedLevel(playerid, plwl +4);
	robbinghall[playerid] =15;
	SendClientMessage(playerid,0x00C7FFAA,"Ti si zaboceo pljacku u City Hall. Policija traga za vama...Cuvaj te se!");
	SendClientMessage(playerid,0x00C7FFAA,"Ostani u checkpoint-u dok ne zavrsi pljacka");
	plwl = GetPlayerWantedLevel(playerid);
	cityhallrobbedrecent = 240;
	format(string, sizeof(string), "(LV CITY HALL ROBBERY) Wanted Level %d",plwl);
	SendClientMessage(playerid,pcol,string);
	printf("%s(%d) je poceo pljackati City Hall",hallrobbber,playerid);
	format(string, sizeof(string), "(ROBBERY IN PROGRESS) Osumljiceni: %s(%d)",hallrobbber,playerid);
	format(string, sizeof(string), "Molimo vas da budete odgovorni i da uhapsite igraca %s(%d)",hallrobbber,playerid);
	COPSCM(0xFF0000FF,string);
	}
	}
	return 1;
	}


public robbingcityhallcountdown()
{
	for(new i=0; i < MAX_PLAYERS; i++)
	{
	if(IsPlayerConnected(i))
	{
	if(robbinghall[i] >= 2)
	{
	robbinghall[i] --;
	new string[100];
	format(string, sizeof(string), "~y~ROBBERY IN PROGRESS~n~~r~STAY IN THE CHECKPOINT");
	GameTextForPlayer(i, string, 2000,3);
	}
	if(robbinghall[i] == 1)
	{
	new hallrobrand = random(150000);
	robbinghall[i] =0;
	new hrobbber[30];
	new string[100];
	new pcol = GetPlayerColor(i);
	GetPlayerName(i,hrobbber,30);
	format(string, sizeof(string), "%s(%d) Has robbed $%d from LV City Hall",hrobbber,i,hallrobrand);
	SendClientMessageToAll(0x00C7FFAA,string);
	format(string, sizeof(string), "~b~CITY HALL~n~~y~ROBBERY COMPLETE~n~~w~$%d",hallrobrand);
	GameTextForPlayer(i, string, 5000,3);
	GivePlayerMoney(i,hallrobrand);
	format(string, sizeof(string), "LV City Hall Robbery Complete. You robbed a total of $%d",hallrobrand);
	SendClientMessage(i,pcol,string);
	printf("%s(%d) has robbed $%d in a LV City Hall Robbery",hrobbber,i,hallrobrand);
	}
	}
	}
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno): Dacu ako treba...