25.02.2014, 13:13
how can i callcar in interior and virual world?
PHP код:
if (strcmp("/GoToDrisa", cmdtext, true, 10) == 0)
{
if(!IsPlayerXAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"фчегд жаъ жойрд шч магойрйн");
if( GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SetVehiclePos(GetPlayerVehicleID(playerid), 2381.4929,1132.9126,34.2529 );
SetVehicleZAngle(GetPlayerVehicleID(playerid), 268.4467 );
SetPlayerTime(playerid,00,00);
LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0 );
}else{
SetPlayerPos(playerid, 2381.4929,1132.9126,34.2529);
SetPlayerFacingAngle(playerid, 268.4467);
SetPlayerTime(playerid,10,00);
ResetPlayerWeapons(playerid);
}
SetPlayerVirtualWorld(playerid, 62);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, 0x00FF00FF, "! дщъвшъ мажеш дфтймеъ гшйсд");
return 1;
}