08.10.2012, 01:40
ok i am trying to make a tlaws command
like this but i dont if it is right and when i put it under "public OnPlayerCommandText(playerid, cmdtext[])"
the cleo compiler does not respond and does not work
maybe tv help will work
this is the code
like this but i dont if it is right and when i put it under "public OnPlayerCommandText(playerid, cmdtext[])"
the cleo compiler does not respond and does not work
maybe tv help will work
this is the code
Code:
if(strcmp(cmdtext, "/tlaws")) { SendClientMessage(playerid, 0xFFFFFFFF, "Always stop at red lights"); SendClientMessage(playerid, 0xFFFFFFFF, "Don't act like a goverment first responder"); SendClientMessage(playerid, 0xFFFFFFFF, "Don't race on any road unless you get a permit from the goverment"); SendClientMessage(playerid, 0xFFFFFFFF, "Make sure you always drive on the right side of the road unless permited"); SendClientMessage(playerid, 0xFFFFFFFF, "Speed limits-50 KPH unpaved Roads,35 KPH Construction Zones,"); SendClientMessage(playerid, 0xFFFFFFFF, "85 KPH Two Lane City Roads,110 MPH on Highways, Freeways, Interstates"); return 1; } return 0; }