Icons and nos
#1

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;
}

Reply
#2

would you kindly help?
Reply
#3

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

where to put
search&ask IsInvalidNOSVehicle
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)