SA-MP Forums Archive
Icons and nos - 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: Icons and nos (/showthread.php?tid=85965)



Icons and nos - argon - 11.07.2009

Hello
I swear i searched but i found nothin.
Firs i wanna use AutoNos, i just know its a car component, but how to use auto nos like, if player enter car, it gets nos automaticaly except bikes!!
Second, is like puting a info marker on a certain coordinate, or an arrow. Not in map, ingame!
BTW i forgot, how to set 2 pickups, health, and other armor
Dang i forgot one last thing.
After we use a Command, it werks fine, but beneath appears "SERVER:Unknown Command"

What is that
Commands Example:
Quote:

if(strcmp(cmdtext, "/war", true) == 0)
if (IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid),153.382 8,1888.4977,18.2910);
} else {
SetPlayerPos(playerid,153.3828,1888.4977,18.2910);
return 1;
}

Quote:

if(strcmp(cmdtext, "/help", true) == 0)
if (IsPlayerInAnyVehicle(playerid)) {
SendClientMessage(playerid, 0xFFFF00AA, "www.argss.tk /teleports /stunts and races /races /vehicles /casino /dm");
} else {
SendClientMessage(playerid, 0xFFFF00AA, "www.argss.tk /teleports /stunts and races /races /vehicles /casino /dm");
return 1;
}




Re: Icons and nos - argon - 11.07.2009

would you kindly help?


Re: Icons and nos - yezizhu - 11.07.2009

search&ask IsInvalidNOSVehicle
then
public OnPlayerStateChange(playerid,oldstate,newstate){
if(newstate == PLAYER_STATE_DRIVER && IsValidNOS(GetPlayerVehicleID(playerid))){
//add nos
}
return true;
}


Re: Icons and nos - argon - 11.07.2009

where to put
search&ask IsInvalidNOSVehicle


Re: Icons and nos - yezizhu - 11.07.2009

Quote:
Originally Posted by argon
where to put
search&ask IsInvalidNOSVehicle
search,maybe is in topic "useful function"