Make things after some time -
wumpyc - 30.09.2011
Hey i was asking how can i make like....when player enter vehicle he get message...and then after 10 seconds he get another message any idea?
Re: Make things after some time -
$India$ - 30.09.2011
Use SetTimer
Re: Make things after some time -
wumpyc - 30.09.2011
tnx i already got it since posting the topic xDD
Re: Make things after some time -
$India$ - 30.09.2011
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, -1,"Turn on your seatbelt to not to get arrested");
SendClientMessage(playerid, -1,"Message 2");
return 1;
}
Try this
Re: Make things after some time -
wumpyc - 30.09.2011
public OnGameModeInit()
{
SetTimer("message",20000,false);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or pay!");
return 1;
}
forward message();
public message()
{
if IsPlayerInAnyVehicle(playerid) *then
SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!");
return 1;
}
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(34) : error 017: undefined symbol "playerid"
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(35) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
wtf?
Re: Make things after some time -
wumpyc - 30.09.2011
Quote:
Originally Posted by wumpyc
public OnGameModeInit()
{
SetTimer("message",20000,false);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or pay!");
return 1;
}
forward message();
public message()
{
if IsPlayerInAnyVehicle(playerid) *then
SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!");
return 1;
}
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(34) : error 017: undefined symbol "playerid"
C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(35) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
wtf?
|
lol got it xD
Re: Make things after some time -
$India$ - 30.09.2011
pawn Код:
public OnGameModeInit()
{
SetTimer("message",20000,false);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or pay!");
return 1;
}
forward message(playerid);
public message(playerid)
{
if(IsPlayerInAnyVehicle(playerid) == 1)
{
SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!");
}
return 1;
}
ERROR Free
Re: Make things after some time -
wumpyc - 30.09.2011
tnx india
Re: Make things after some time -
$India$ - 30.09.2011
Deserves Rep+
Re: Make things after some time -
wumpyc - 30.09.2011
yep i gave you rep...but still got a problem...after 20sec still i dont get message