Question
#1

How can i make so when player enters car he gets a message owned by: XXX?

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
    {
        if(IsPlayerAdmin(playerid)) { }
        else
        {
            new Float:cx, Float:cy, Float:cz;
            GetPlayerPos(playerid, cx, cy, cz);
            SetPlayerPos(playerid, cx, cy, cz);
        }
    }
    return 1;
}
Reply
#2

whats your (Owner) Enum?
Reply
#3

Not sure about your question since its lacking detail.. but
pawn Код:
if(IsPlayerAdmin(playerid)) { }
        else
        {
            new Float:cx, Float:cy, Float:cz;
            GetPlayerPos(playerid, cx, cy, cz);
            SetPlayerPos(playerid, cx, cy, cz);
        }
Why are you not using if(!IsPlayerAdmin(playerid)){}?
Reply
#4

pawn Код:
new string[56]
format(string,sizeof(string),"Vehicle owner: %s",CarInfo[vehicleid][cOwner]); //Replace with your enum..
SendClientMessage(playerid,-1,string);
Reply
#5

Quote:
Originally Posted by tyler12
Посмотреть сообщение
pawn Код:
new string[56]
format(string,sizeof(string),"Vehicle owner: %s",CarInfo[vehicleid][cOwner]); //Replace with your enum..
SendClientMessage(playerid,-1,string);
then each car gets Vehicle owner: i want only owned cars..can you help me so that all cars that are owned in this notepad to get vehicle (masini.cfg)= notepad)

PHP код:
if(idx == carsonserver)
        {
            
file2 fopen("masini.cfg"io_write);
        }
        else
        {
            
file2 fopen("masini.cfg"io_append);
        } 
Reply
#6

can anyone help?sorry for bump i dont know what bump is..
Reply
#7

is this one good??

pawn Код:
new string[56];
    if(PlayerInfo[playerid][pPcarkey] != -1) && (PlayerInfo[playerid][pPcarkey2] != -1) && (PlayerInfo[playerid][pPcarkey3] != -1)
    {
        format(string,sizeof(string),"Vehicul inregistrat pe numele: %s",CarInfo[vehicleid][cOwner]);
        SendClientMessage(playerid, COLOR_BLUE, string);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)