10.07.2009, 17:53
Quote:
public dmventercartimer(playerid) { TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTRED,"You failed the test.You didn't enter the car !"); RemovePlayerFromVehicle(playerid); } |
public dmventercartimer(playerid) { TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTRED,"You failed the test.You didn't enter the car !"); RemovePlayerFromVehicle(playerid); } |
Originally Posted by FreeSoul
As far as I know that function send the message from a player to another player
|
Originally Posted by FreeSoul
Nope,same problem will surely appear O-O
|
Originally Posted by BMUK
SendClientMessage(playerid,COLOR_LIGHTRED,"You failed the test.You didn't enter the car !");
That ^ alone wont send it to everyone. Check your dmventercartimer(playerid) function for a loop! (or post it here) |
forward dmventercartimer(playerid); |
public dmventercartimer(playerid) { TakingLesson[playerid] = 0; SendClientMessage(playerid,COLOR_LIGHTRED,"Ai picat testul.Nu ai intrat in masina ca sa dai traseul !"); RemovePlayerFromVehicle(playerid); } |
else if(TakingLesson[playerid] == 1) { GameTextForPlayer(playerid, "~w~Los Santos ~n~~w~Pershing Square", 1000, 1); SetPlayerInterior(playerid,0); SetPlayerPos(playerid,1397.0741,-1571.8979,14.2681); SendClientMessage(playerid,COLOR_LIGHTRED," You have 20 seconds to enter the car and take the test !"); dmvtimer1 = SetTimer("dmventercartimer",20000,false); } |
Originally Posted by dice7
You need to use SetTimerEx so every playerid will have its own timer
https://sampwiki.blast.hk/wiki/SetTimerEx |