if(strcmp(cmdtext, "/teles", true) == 0)
{
SendClientMessage(playerid, COLOR_ORANGE, "** ONLY USE THESE IF YOU ARE IN THE STUNT WORLD. ");
SendClientMessage(playerid, COLOR_ORANGE, "** /stuntshowplayers ");
SendClientMessage(playerid, COLOR_ORANGE, "** /stuntplane ** /nrgcourse1 ** /stuntls ** /floodedpark ** /sewerstuntzone");
SendClientMessage(playerid, COLOR_ORANGE, "** /stuntchilliad ** /stuntaa ** /aamj ** /obcourse1 ** /moviestage ** /effeltower");
SendClientMessage(playerid, COLOR_ORANGE, "** /aquastunts ** /moviecasino ** /moviefactory **");
}
if(strcmp(cmdtext, "/teles", true) == 0) { if( Getplayervirtualworld == 5 ) { SendClientMessage(playerid, COLOR_ORANGE, "** ONLY USE THESE IF YOU ARE IN THE STUNT WORLD. "); SendClientMessage(playerid, COLOR_ORANGE, "** /stuntshowplayers "); SendClientMessage(playerid, COLOR_ORANGE, "** /stuntplane ** /nrgcourse1 ** /stuntls ** /floodedpark ** /sewerstuntzone"); SendClientMessage(playerid, COLOR_ORANGE, "** /stuntchilliad ** /stuntaa ** /aamj ** /obcourse1 ** /moviestage ** /effeltower"); SendClientMessage(playerid, COLOR_ORANGE, "** /aquastunts ** /moviecasino ** /moviefactory **"); } }
if(strcmp(cmdtext, "/teles", true) == 0)
{
if ( GetPlayerVirtualWorld( playerid ) == 5 )
{
// this will get called only if playerid is in virtual world 5
}
}
A little modification to the above code.
pawn Код:
|