01.12.2009, 18:45
i will help you now but next time check test_cmds FS and other FSs and then search it if you doesnt find it so make a topic then
Code:
if ( strcmp( cmd, "/goto", true ) == 0 ) { new tmp[256]; tmp = strtok( cmdtext, idx ); if ( !strlen( tmp ) ) { return 1; } new Float:X, Float:Y, Float:Z; if ( GetPlayerVehicleID( playerid ) ) { GetPlayerPos( strval(tmp), X, Y, Z ); SetVehiclePos( GetPlayerVehicleID(playerid), X+2, Y+2, Z ); } else { GetPlayerPos( strval(tmp), X, Y, Z ); SetPlayerPos( playerid, X+2, Y+2, Z ); } return 1; } if ( strcmp( cmd, "/gethere", true ) == 0 ) { new tmp[256]; tmp = strtok( cmdtext, idx ); if ( !strlen( tmp ) ) { return 1; } new Float:X, Float:Y, Float:Z; if ( GetPlayerVehicleID( strval(tmp) ) ) { GetPlayerPos( playerid, X, Y, Z ); SetVehiclePos( GetPlayerVehicleID(strval(tmp)), X+2, Y+2, Z ); } else { GetPlayerPos( playerid, X, Y, Z ); SetPlayerPos( strval(tmp), X+2, Y+2, Z ); } return 1; }