Vehicle enter - 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)
+--- Thread: Vehicle enter (
/showthread.php?tid=442917)
Vehicle enter -
Tanush123 - 09.06.2013
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
Re: Vehicle enter -
iGetty - 09.06.2013
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.
Re: Vehicle enter -
Tanush123 - 09.06.2013
I want that second msg to happen if the owner has an alarm for that vehicle.