01.05.2011, 21:49
hey i made some teleports to make getting to places on the map faster and only bigear, sf and sfair i go ingame and say /save and then i put the code in no errors or warnings and restart again and say /ls for los santo's and it puts me in middle of no wear over san ferior, what am i doing wrong is it my scripting problems all locations are outside do i need to set an interior
PHP код:
//My added commands
command(ls, playerid, params[]) // change the ls to whatever command you want
{
SendClientMessage( playerid, WHITE, "You are teleporting to LS" ); // remember to change the colour!
SetPlayerPos( playerid, -885.2749,1757.8549,13.5469); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}
command(sf, playerid, params[]) // this command teles you to SF
{
SendClientMessage( playerid, WHITE, "You are teleporting to SF" ); // remember to change the colour!
SetPlayerPos( playerid, -1916.4294,300.0021,41.0469); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}
command(lv, playerid, params[]) // this command teles you to LV
{
SendClientMessage( playerid, WHITE, "You are teleporting to LV" ); // remember to change the colour!
SetPlayerPos( playerid, -2416.0400,2319.0842,10.8203); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}
command(sfair, playerid, params[]) // this command teles you to SFAIR
{
SendClientMessage( playerid, WHITE, "You are teleporting to SFAIR" ); // remember to change the colour!
SetPlayerPos( playerid, -1548.6362,-433.6081,6.0047); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}
command(lvair, playerid, params[]) // this command teles you to LVAIR
{
SendClientMessage( playerid, WHITE, "You are teleporting to LVAIR" ); // remember to change the colour!
SetPlayerPos( playerid, -1706.3243,1607.0999,10.0221); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}
command(bigear, playerid, params[]) // this command teles you to BIGEAR
{
SendClientMessage( playerid, WHITE, "You are teleporting to BIGEAR" ); // remember to change the colour!
SetPlayerPos( playerid, -376.2169,1573.1632,75.9308); // Change the co-ords to your position
SetPlayerVirtualWorld( playerid, 0 );
return 1;
}