Help with a command
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)