"This paste has been removed".
Re- paste S.L.C.
Re- paste S.L.C.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: sseebbyy on Oct 28, 2014, 04:26 PMWell, I know it is a very weird idea... but maybe there is something wrong with the VPS's PC time.
If I am not wrong, time() function returns the time of the pc that runs the server, so maybe something is blocking it.
Did you test the script on your server ? If not, give it a try and see the results.
Quote from: Fjose on Oct 28, 2014, 03:45 PMsurely you are missing something...
anyway about your question, these are my modules used: Windows (x86) Plugins Pack
+ server: Windows Server (x86)
if ( status[ player.ID ].TimeRequest < time() )
else if ( cmd == "team" )
{
local plr = FindPlr( GetTok( text, " ", 1 ) );
if ( status[ player.ID ].Team == true ) PrivMessage( player, "[Error] You already are in team." );
else if ( !text ) PrivMessage( player, "Syntax: /team <player name or id>" );
else if ( !plr ) PrivMessage( player, "[Error] Unknown player." );
else if ( status[ plr.ID ].Team == true ) PrivMessage( player, "[Error] " + plr.Name + " is already in team." );
else if ( status[ player.ID ].Request == true ) PrivMessage( player, "[Error] You already have a request." );
else if ( status[ plr.ID ].Request == true ) PrivMessage( player, "[Error] " + plr.Name + " already have a request." );
else
{
if ( status[ player.ID ].TimeRequest < time() )
{
status[ player.ID ].Request = false; status[ player.ID ].Partner = null; status[ player.ID ].TimeRequest = 0;
status[ plr.ID ].Request = false; status[ plr.ID ].Partner = null; status[ plr.ID ].TimeRequest = 0;
}
PrivMessage( plr, "[!] " + player.Name + " would like to team up with you." );
PrivMessage( player, "Request submitted." );
status[ player.ID ].Partner = plr.ID;
status[ plr.ID ].Partner = player.ID;
status[ player.ID ].TimeRequest = time() + 30;
status[ plr.ID ].TimeRequest = time() + 30;
}
}
Quote from: KraTO$ on Oct 26, 2014, 02:57 PMThat only gives me Error...IDK Why!!!!