22.09.2008, 00:28
Quote:
Originally Posted by MaaaaTT
so could i use this for things such as commands? like only Matt2127 can open the gate?
|
for example:
Code:
if(strcmp(cmdtext, "/opengate", true)==0) { if(PlayerNameIs(playerid, "Matt2127")) { MoveObject(gate, blah blah blah); SendClientMessage(playerid, COLOR_GREEN, "Gate is now open!"); } else { SendClientMessage(playerid, COLOR_RED, "Sorry, only Matt2127 is allowed to enter this gate!"); } return 1; }