07.07.2012, 12:39
This may sound nooby, but im a noob haha. When i make a command:
If i want to make another command in the script, what do i have to do? do i have to put public OnplayerCommandText(playerid, cmdtext[]) or do i just start at "if"? Also, what do i have to return the values too?
Thanks in advanced
Код HTML:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/tpallsaints", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,1201.29,-1325.50,13.40); SendClientMessage(playerid, 0x808080FF, "You have been teleported to All Saints General Hospital (Los Santos)"); return 1; } return 0; }
Thanks in advanced
