All pastes #908707 Raw Edit

Someone

public text v1 · immutable
·published 2008-02-18 18:12 UTC
rendered paste body
	if(strcmp(cmdtext, "/block", true)==0)
	{
	    if (gTeam[playerid] != 2) return SendClientMessage(playerid, COLOR_GRAD2,"    You're not a cop!");
	    new Float:X, Float:Y, Float:Z, Float:A;
	    GetPlayerPos(playerid, X, Y, Z);
	    GetPlayerFacingAngle(playerid, A);
	    roadblock = CreateObject(981, X, Y, Z, 0.0, 0.0, A);
	    RoadBlock[playerid] += 1;
	    SendClientMessage(playerid, COLOR_GRAD2, "RoadBlock Successfully Deployed");
	    return 1;
	}


+++++++++++


	if(strcmp(cmdtext, "/unblock", true)==0)
	{
	    if (gTeam[playerid] != 2) return SendClientMessage(playerid, COLOR_GRAD2,"    You're not a cop!");
	    if (RoadBlock[playerid] == 0) return SendClientMessage(playerid, COLOR_GRAD2,"    You didn't add a roadblock!");
	    DestroyObject(roadblock);
	    RoadBlock[playerid] -= 1;
	    SendClientMessage(playerid, COLOR_GRAD2, "RoadBlock Successfully Removed");
	    return 1;
	}