18.04.2013, 21:05
Quote:
I know its not the most descriptive title, But its something...
So i need to make a system that lets say a player uses /rp (ECT: Rep player) it adds a time stamp to database `rep` with the name of the player lets sat `Bob Marston` and a timestamp that i can then use ingame to stop the player using the example command for lets say an hour even if he/she leaves the server. I've been looking around but nothing seems to solve this problem :P |
https://sampforum.blast.hk/showthread.php?tid=129183
For more info read this link.
Код:
new string[256]; new stamp; stamp = gettime(); format(string,sizeof(string),"INSERT INTO `rep` (`username`, `stamp`) VALUES ('%s', '%i')",PlayerName, stamp); mysql_query(string);
Код:
new string[256]; format(string,sizeof(string),"SELECT `stamp` FROM `rep` WHERE `username` = '%s'",PlayerName); mysql_query(string);