Vehicle enter
#1

pawn Код:
if(!strcmp(Nam,CarSystem[playerid][Owner],true))
            {
                format(str,sizeof(str),"* Hello %s, welcome back to your vehicle.",Nam);
                SendClientMessage(playerid,COLOR_YELLOW,str);
            }
            if(strcmp(Nam,CarSystem[playerid][Owner],true) && PlayerData[CarSystem[playerid][Owner]][Caralarm] == 1)
            {
                format(str,sizeof(str),"*BEEP *BEEP %s has entered your vehicle.",Nam);
                SendClientMessage(CarSystem[playerid][Owner],red,str);
            }
When i enter my vehicle, it shows the message. But when someone else enter my vehicle, it doesn't show the *BEEP *BEEP
Reply
#2

pawn Код:
if(!strcmp(Nam,CarSystem[playerid][Owner],true))
            {
                format(str,sizeof(str),"* Hello %s, welcome back to your vehicle.",Nam);
                SendClientMessage(playerid,COLOR_YELLOW,str);
            }
            else
            {
                format(str,sizeof(str),"*BEEP *BEEP %s has entered your vehicle.",Nam);
                SendClientMessage(CarSystem[playerid][Owner],red,str);
            }
Try that.
Reply
#3

I want that second msg to happen if the owner has an alarm for that vehicle.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)