Remove Roadblock - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Remove Roadblock (
/showthread.php?tid=463122)
Remove Roadblock -
r0bi - 10.09.2013
Hi.I did command /rrball,command which remove all road blocks.The command is this
Код HTML:
dcmd_rrball(playerid,params[])
{
#pragma unused params
new string [126];
if ((gTeam[playerid] <=6) && (gTeam[playerid] > 0))
{ for(new i=0;i<=sizeof(block);i++)
DestroyObject(i);
GameTextForPlayer(playerid,"~w~RoadBlock ~r~all removed",3000,1);
GetPlayerName(playerid,pName,32);
format(string,sizeof string,"%s remove all roadblock",pName);
return TeamChat(string);
}
return 1;
}
and works perfectly but I want to do and command / rub which was removed one by one roadblock.I don't know what to change in this command to remove one by one.Can someone help me?If you need more tell me anything I post.