All pastes #425139 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-05 08:46 UTC
rendered paste body
if (strcmp(cmd,"/dj",true)==0) {
		KillTimerEx(djtimer[playerid]);
		KillTimerEx(stopdjtimer[playerid]);
		GetPlayerPos(playerid,xpos[0],ypos[0],zpos[0]);
		if(xpos[0] < 503.6438 && ypos[0] < -0.6927 && zpos[0] < 1005.0000 && xpos[0] > 473.7339 && ypos[0] > -26.5868 && zpos[0] > 1000.0000) {
			GetPlayerName(playerid,playername,sizeof(playername));
			djtimer[playerid] = SetTimerEx("earnmoneydj",1000,1,playerid);
			stopdjtimer[playerid] = SetTimerEx("stopearningmoneydj",300000,0,playerid);
			format(string,sizeof(string),"%s is now dj'ing.",playername);
			SendClientMessageToAll(0x00FF00AA,string);
		}
		
		else {
			SendClientMessage(playerid,0xFFFF00AA,"You need to be at the Alhambra Dancing Club.");
		}
	    return 1;
	}