Quote:
Originally Posted by nickstar
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
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/tlaws", true)) { 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; }
|
Yes, you place it in OnPlayerCommandText. Wait what? Cleo compiler?