12.12.2009, 20:14
Hello,i have scripted that code:
Now the problem is when the timer runs,it sends the message to the ID 0 only.
How can i set it when someone use /bla it will send TO him and not to ID 0?
as you can see,i tried to remove the return true;
pawn Код:
if (strcmp(cmd, "/bla", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
SetTimer("StartTest", 6000, false);
SetTimer("FaildTest", 100000, false);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in!");
}
}
return 1;
}
How can i set it when someone use /bla it will send TO him and not to ID 0?
pawn Код:
public StartTest(playerid)
{
SendClientMessage(playerid, COLOR_WHITE, "Your test has began!");
//SetPlayerCheckpoint(playerid, 2033.2446,-1929.7856,12.9651, 5.0);
//return true;
}