fixradio Code
#1

hi. I am woondering if it si Script so i can do like /fixradio and the the Radio whill be back on. Like if you to to Optisions and back in the game the Radio is off and the i do /fixradio then the Radio is back on. Is that Possabole?
Reply
#2

You can make a cmd /fixradio, that gets the vehicle id(not model), ejects player, puts it back in the car.
Reply
#3

How is it mate? I am not good in Coding.
Reply
#4

Код:
if(strcmp(cmdtext, "/fixradio", true) == 0)
	{
	new fvehid;
	new Float:fx, Float:fy, Float:fz;
	fvehid=GetPlayerVehicleID(playerid);
	GetPlayerPos(playerid, Float:fx, Float:fy, Float:fz);
	SetPlayerPos(playerid, Float:fx, Float:fy, Float:fz);
	PutPlayerInVehicle(playerid, fvehid, 0);
	return 1;
	}
Reply
#5

Код:
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
Playing a sound for the player will fix the radio.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)