// [GPS] Script versie 1.0.0.0
#include <a_samp>
#include <file>
#define COLOR_GREY 0xAFAFAFAA
public OnPlayerConnect(playerid)
{
new PlayerName[30], str[256];
GetPlayerName(playerid, PlayerName, 30);
format(str, 256, "%s has joined the server", PlayerName);
SendClientMessageToAll(COLOR_GREY, str);
GetPlayerName(playerid, PlayerName, 30);
format(str, 256, "%s\r\n", PlayerName); // formatting the string with the escape codes
fwrite(ftw, string);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
switch(reason)
{
case 0:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s timed out.", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
case 1:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s has left the server.", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
case 2:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s is kicked.", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
}
return 1;
}
public OnFilterScriptInit() {
print(" "); // lege regel
print("[GPS] Gerbens Party Server");
print(" "); // lege regel
print("Welcome to GPS.");
print("GPS Rules:");
print("No glitching, cheating, hacking etc.");
print("Admins are always right");
print("Capslock off (the capslock button is the button above the shift, and under the tab button)");
print("Don't accept the rules? Quit the game!");
print("Want to see the rules back? Enter /rules.");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/rules", true) == 0) {
SendClientMessage(playerid, 0xDEEE20FF, "Again, here are the rules!");
SendClientMessage(playerid, 0xDEEE20FF, "No glitching, cheating, hacking etc.");
SendClientMessage(playerid, 0xDEEE20FF, "Admins are always right.");
SendClientMessage(playerid, 0xDEEE20FF, "Capslock off (the capslock button is the button above the shift, and under the tab button)");
SendClientMessage(playerid, 0xDEEE20FF, "Don't accept the rules? Quit the game!");
return 1;
}
return 0;
}