SA-MP Forums Archive
Help with a command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with a command (/showthread.php?tid=185749)



Help with a command - Roma555 - 26.10.2010

Has made a command to put object
Код:
if (strcmp(cmd, "/cb", true) == 0)
	{
		if(gTeam[playerid] != TEAM_COP) {
		SendClientMessage(playerid, COLOR_ORANGE, "Only policemen can ");
		return 1;
		}
		if(IsPlayerInAnyVehicle(playerid)) {
		SendClientMessage(playerid, COLOR_ORANGE, ".");
		return 1;
		}
		if(cbuse[playerid] == 0)
		{
		new Float:x, Float:y, Float:z,Float:angle;

 		StingerCount++;
		CurrentStinger[playerid] = StingerCount;
		GetPlayerPos(playerid, x, y, z);
		GetPlayerFacingAngle(playerid,angle);
		CreateObject(1459,x+2,y,z-0.3,0.0,0.0,angle);
		cbuse[playerid]=1;
		}
		else SendClientMessage(playerid,COLOR_RED,"ERROR: At first clean that object which has put");
		return 1;
	}
How to make a command that could clean that object which has put?