Bonjour,
J"ai a nouveau besoin d"aide;
Je vais creer mon systeme de paytime, avec un timer qui rajoute 1 dans la mention "tempsCo" dans le fichier du joueur, et si c est superieur ou = a 30, il a son paytime, et TempsCo est remi a 0 a chaque heure,
mais pour savoir si l"heure du jeu est pile, j"y arrive pas, en gros si il est 19h, 18h, 17h,16h,15h,10h,22h,5h, etc mon timer verifie toute les minute mais pour le if je mets quoi ?
if(worldtime == 1 etc jusqu"a 23heure ?)
Merci de votre aide.
Edit:
Encore besoin de vous, je voudrais que si le mec est dans la faction flic, que quand il parle sa affiche "policier Pseudo dit: Texte", je pense a sa:
public OnPlayerText(playerid, text[])
{
if(realchat)
{
new sendername[MAX_PLAYER_NAME];
new string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(stats[playerid][Faction] == 0)
{
format(string, sizeof(string), "%s dit: %s", sendername, text);
SetPlayerChatBubble(playerid, string, TEAM_ORANGE, 100.0, 10000);
}
if(stats[playerid][Faction] >= 2)
{
format(string, sizeof(string), "%s dit: %s", sendername, text);
SetPlayerChatBubble(playerid, string, TEAM_ORANGE, 100.0, 10000);
}
if(stats[playerid][Faction] == 1)
{
format(string, sizeof(string), "Policier %s dit: %s", sendername, text);
SetPlayerChatBubble(playerid, string, TEAM_ORANGE, 100.0, 10000);
}
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
}
return 0;
}
Vous pensez que C"est correct ?