30.08.2014, 12:13
(
Последний раз редактировалось KiM0Ro; 30.08.2014 в 12:57.
)
Hi as my title say,the dealership command,Test have a bug,it don't happen nothing...i want to put the player in the car and after 30 seconds to expire the time and to teleport again at the dealership,but this don't happen? Any helps?
CODES:
if(clickedid == ButonTesteaza[playerid])
{
SetTimerEx("TimpScurs",30 * 1000,0,"d",playerid);
SetVehicleVirtualWorld(IDmasina[playerid],0);
SendClientMessage(playerid, -1, "test");
PutPlayerInVehicle(playerid,IDmasina[playerid],0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid,Linie[playerid]);
TextDrawHideForPlayer(playerid,ButonInapoi[playerid]);
TextDrawHideForPlayer(playerid,ButonUrmator[playerid]);
TextDrawHideForPlayer(playerid,ButonTesteaza[playerid]);
TextDrawHideForPlayer(playerid,ButonCumpara[playerid]);
TextDrawHideForPlayer(playerid,ButonAnuleaza[playerid]);
TextDrawHideForPlayer(playerid,DealerMasina[playerid]);
TextDrawHideForPlayer(playerid,DealerPret[playerid]);
CancelSelectTextDraw(playerid);
}
function TimpScurs(playerid)
{
DestroyVehicle(IDmasina[playerid]);
SetPlayerPos(playerid,2131.9553,-1149.4324,24.2693);
}
CODES:
if(clickedid == ButonTesteaza[playerid])
{
SetTimerEx("TimpScurs",30 * 1000,0,"d",playerid);
SetVehicleVirtualWorld(IDmasina[playerid],0);
SendClientMessage(playerid, -1, "test");
PutPlayerInVehicle(playerid,IDmasina[playerid],0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
TextDrawHideForPlayer(playerid,Linie[playerid]);
TextDrawHideForPlayer(playerid,ButonInapoi[playerid]);
TextDrawHideForPlayer(playerid,ButonUrmator[playerid]);
TextDrawHideForPlayer(playerid,ButonTesteaza[playerid]);
TextDrawHideForPlayer(playerid,ButonCumpara[playerid]);
TextDrawHideForPlayer(playerid,ButonAnuleaza[playerid]);
TextDrawHideForPlayer(playerid,DealerMasina[playerid]);
TextDrawHideForPlayer(playerid,DealerPret[playerid]);
CancelSelectTextDraw(playerid);
}
function TimpScurs(playerid)
{
DestroyVehicle(IDmasina[playerid]);
SetPlayerPos(playerid,2131.9553,-1149.4324,24.2693);
}