#IfWinActive GTA:SA:MP
#Include samp.udf
FileDelete, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
Loop
{
FileRead, file, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
IfInString, file, Connected. Joining the game...
{
SendChat("/settime 5")
Sleep 1050
SendChat("/setweather 45")
Sleep 1050
SendChat("/cmd")
return
{
}