Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.82 KB | None | 0 0
  1.     if (!strcmp("/savegame", cmdtext))
  2.     {
  3.         if(GetPVarInt(playerid, "AdminLevel" <5)
  4.         {
  5.             SendClientMessage(playerid, COLOR_RED, "Du bist kein Admin");
  6.             return 1;
  7.         }
  8.         for(new i = 0; i < GetMaxPlayers(); i++)
  9.         {
  10.             if(IsPlayerConnected(i))
  11.             {
  12.                 if(GetPVarInt(i, "IsLogged" == 1)
  13.                 {
  14.                     mysql_SetInt("spieler", "Geld", GetPlayerMoney(i), "Name", PlayerName[i]);
  15.                     mysql_SetInt("spieler", "Score", GetPlayerScore(i), "Name", PlayerName[i]);
  16.                     mysql_SetInt("spieler", "Skin", GetPlayerSkin(i), "Name", PlayerName[i]);
  17.                     mysql_SetInt("spieler", "OnlineTime", GetPVarInt(i, "OnlineTime", "Name", PlayerName[i]);
  18.                     mysql_SetInt("spieler", "AdminLevel", GetPVarInt(i, "AdminLevel", "Name", PlayerName[i]);
  19.                 }
  20.             }
  21.         }
  22.         SendClientMessage(playerid, COLOR_RED, "Speichern Beendet!");
  23.         return 1;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement