26.04.2013, 20:07
I have added simple gate system in my GM,and now i cant use any command at all..message comes up SERVER:UNKNOWN COMMAND
How can i fix it?
How can i fix it?
dcmd_placegate(playerid, params[])
{ if(PlayerInfo[playerid][pAdmin] >= 6) { if( isnull( params) ) { SendClientMessage(playerid, COLOR_WHITE, "HINT: /placegate [password]" ); return 1; } if( !strval( params ) ) { SendClientMessage(playerid, COLOR_WHITE, "* You need to input numbers." ); return 1; } if( IsPlayerInAnyVehicle(playerid ) ) { SendClientMessage(playerid, COLOR_WHITE, "* You need to exit your vehicle." ); return 1; } new FloatPos[4]; GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2] ); GetPlayerFacingAngle(playerid, pPos[3] ); CreateGate(playerid, strval( params ), pPos[0], pPos[1], pPos[2], pPos[3] ); SendClientMessage(playerid, COLOR_WHITE, "* You succesfully created a movable gate. Use /gate to open or close them." ); return 1; } return 1; } |