27.07.2011, 12:29
i want add those teleport cmds lva sfa... to a satdm server and i find the cmds and compiled them and everything works but when i loaded the game the cmds don't work it says cmd not found try another.......
can any one help me plz
this is what i putted in the gamemode:
if u need the game mode to solve the problem tell me and i will give it to u.
can any one help me plz
this is what i putted in the gamemode:
Quote:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/lsa", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1990.6156,-2335.7556,13.5469); SetPlayerFacingAngle(playerid, 82.8390); SendClientMessage(playerid, COLOR_GREEN, "You have been teleported."); return 1; } if (strcmp("/sfa", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, -1196.7540,-162.0608,14.1484); SetPlayerFacingAngle(playerid, 90.3707); SendClientMessage(playerid, COLOR_GREEN, "You have been teleported."); return 1; } if (strcmp("/lva", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, 1319.4534,1262.0178,10.8203); SetPlayerFacingAngle(playerid, 359.4272); SendClientMessage(playerid, COLOR_GREEN, "You have been teleported."); return 1; } return 0; } |