Jump to content

Question

1 answer to this question

Recommended Posts

Posted

[pawn]

#define SCMToAll SendClientMessageToAll

CMD:vw( playerid , params[ ] )

{

new

    VW,

vString[ 200 ];

if( sscanf ( params , "i" , VW ) )

    return SCM( playerid , -1 , ""O"Usage: "R"/vw "G"[ world ]" );

if( VW > 999999 )

    return SCM( playerid , -1 , ""O"Invalid Virtual World" );

if( IsPlayerInAnyVehicle( playerid ))

{

    SetVehicleVirtualWorld( GetPlayerVehicleID( playerid ) , VW );

    SetPlayerVirtualWorld( playerid , VW );

    format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );

    SCMToAll( -1 , vString );

}

else

{

    SetPlayerVirtualWorld( playerid , VW );

    format( vString , sizeof vString , ""O"You Have Set Your World To "R"%d" , VW );

    SCMToAll( -1 , vString );

}

return ( 1 ) ;

}[/pawn]

idiots.png
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.