if(strcmp("/systemupdate", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
TimeM = 1;
TimeS = 0;
Time = SetTimer("UpdateTime", 1000, true);
TextDrawShowForAll(Systemupdate);
TextDrawShowForAll(Taimer);
Sys = true;
return 1;
}
}
public OnRconCommand(cmd[])
{
if(strcmp("systemupdate", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
TimeM = 1;
TimeS = 0;
Time = SetTimer("UpdateTime", 1000, true);
TextDrawShowForAll(Systemupdate);
TextDrawShowForAll(Taimer);
Sys = true;
return 1;
}
}
return 1;
}
|
Originally Posted by Etch ❽ H
u can't make a rcon command cause when u type /rcon "thing" the thing go to the console (black window *samp-server.exe* so the console ain't same as pawn
|
|
Originally Posted by DeathOnaStick
Well, i did it and it worked.
|
public OnRconCommand(cmd[])
{
if(strcmp("systemupdate", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
TimeM = 1;
TimeS = 0;
Time = SetTimer("UpdateTime", 1000, true);
TextDrawShowForAll(Systemupdate);
TextDrawShowForAll(Taimer);
Sys = true;
return 1;
}
}
return 1;
}
public OnRconCommand(cmd[])
{
if(strcmp("systemupdate", cmd, true) == 0)
{
TimeM = 1;
TimeS = 0;
Time = SetTimer("UpdateTime", 1000, true);
TextDrawShowForAll(Systemupdate);
TextDrawShowForAll(Taimer);
Sys = true;
return 1;
}
return 1;
}