12.08.2011, 23:17
Hello, I'm a very new scripter and I'm enjoying it a lot. So I got a quick question, when i make a teleport how do i put them in the same FS? instead of making a separate one for each teleport. As I said, I'm still a newb at scripting. I tried this code, but when I go in game and try it only the first one works, and not the rest. Here is an example of my work so far:
If you can help me fix it I'd greatly appreciate it, thank you.
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/cia", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 100.7311,1920.8513,18.2811); return 1; } return 0; } public OnPlayerCommandText1(playerid, cmdtext[]) { if (strcmp("/prison", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, -1189.0684,-964.0616,129.2119); return 1; } return 0; } |