Somone know a /start for start vehicle engine - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Somone know a /start for start vehicle engine (
/showthread.php?tid=167856)
Somone know a /start for start vehicle engine -
salut693123 - 14.08.2010
o.O im searching somone got a vehicle system when somone enter in the vehicle they need to type /start for drive
And it send a message : Your engine has been Started
Re: Somone know a /start for start vehicle engine -
DiddyBop - 14.08.2010
pawn Code:
dcmd_start(playerid){
SendClientMessage(playerid, COLOR_MESSAGE, "Your engine has been Started");
}
Re: Somone know a /start for start vehicle engine -
willsuckformoney - 14.08.2010
fail..
pawn Code:
//At top
new Eon[MAX_PLAYERS]; = 0;
//OnPlayerConnect
Eon = 0;
//OnPlayerSpawn
Eon = 0;
//from gunna command
dcmd_start(playerid)
{
if(Eon == 1) {
SendClientMessage(playerid,red,"Engine is already on");
} else {
SendClientMessage(playerid,ACOLOR,"Engine On");
TogglePlayerControllable(playerid,1);
Eon = 1;
}
return 1;
}
//OnPlayerKetStateChange
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
TogglePlayerControllable(playerid,0);
SendClientMessage(playerid,COLOR,"/start to turn your engine on");
}
more likely to fail, but more helpful than GunnA xD
Re: Somone know a /start for start vehicle engine -
RoBo - 14.08.2010
You're treating an array like a single integer, that code is not going to compile. ^