29.04.2010, 11:55
Like this?
Код:
public Timer() { SetObjectRot(PDrampa1, 0.0000, 88.0000, 90.0000); //The actual timer... } public Timer1() { SetObjectRot(PDrampa1, 0.0000, 84.0000, 90.0000); //The actual timer... } public Timer2() { SetObjectRot(PDrampa1, 0.0000, 80.0000, 90.0000); //The actual timer... } public Timer3() { SetObjectRot(PDrampa1, 0.0000, 75.0000, 90.0000); //The actual timer... } public Timer4() { SetObjectRot(PDrampa1, 0.0000, 70.0000, 90.0000); //The actual timer... }
Код:
if(strcmp(cmdtext, "/pd1o", true) == 0) { if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1) { SetTimer("Timer",200,false); SetTimer("Timer1",400,false); SetTimer("Timer2",600,false); SetTimer("Timer3",800,false); SetTimer("Timer4",1000,false); SendClientMessage(playerid, COLOR_GREEN, "Otvarate rampu PD-a.");// opening pd ramp 1 } else { SendClientMessage(playerid, COLOR_GREEN, "Nisi clan PD-a."); // you are not member of police department } return 1; }
EDIT: I succed it is like this
tnx
