24.08.2009, 09:20
I dont know how to make a script that automaticly saves your : score, money, skin and color??
Please Help!!
Please Help!!
accountstimer = SetTimer("SaveAccounts", 900000, 1); //15 mins every account saved
if(strcmp(cmd, "/saveaccounts", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2) // Change for your required level admin.
{
SaveAccounts(); // Change for your account variable.
SendClientMessage(playerid, COLOR_YELLOW, "The Accounts saved correctly.");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not autorized to use that command!");
}
return 1;
}
public OnPlayerConnect(playerid) {new string[128]; format(string, sizeof(string), "STATS : Score : %d , Money : %d , Color : %d , Skin : %d , AdminLevel : %d", GetPlayerScore(playerid), GetPlayerMoney(playerid) , GetPlayerColor(playerid) , GetPlayerSkin(playerid) , IsPlayerAdmin(playerid));
public OnPlayerConnect(playerid)
{
new string[128];
format(string, sizeof(string), "STATS : Score : %d , Money : %d , Color : %d , Skin : %d , AdminLevel : %d", GetPlayerScore(playerid), GetPlayerMoney(playerid) , GetPlayerColor(playerid) , GetPlayerSkin(playerid) , IsPlayerAdmin(playerid));
SendClientMessage(playerid, COLOR_WHITE,string);