Make things after some time
#1

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?
Reply
#2

Use SetTimer
Reply
#3

tnx i already got it since posting the topic xDD
Reply
#4

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
Reply
#5

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?
Reply
#6

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
Reply
#7

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
Reply
#8

tnx india
Reply
#9

Deserves Rep+
Reply
#10

yep i gave you rep...but still got a problem...after 20sec still i dont get message
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)