30.05.2013, 11:21
WHat is this? it comes out error
and another one
Quote:
public OnPlayerSpawn(playerid) { TogglePlayerSpectating(playerid, false); // Anti F4 Bug - Logging/Registering if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid)) { if(IsPlayerNPC(playerid)) return 1; SetPlayerJoinCamera(playerid); SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); new file[64]; format(file, sizeof(file), "users/%s.ini", RPNU(playerid)); // Player isn't banned if(dini_Int(file, "AdminAccount") == 1) { format(file, sizeof(file), "users/%s.ini",RPNU(playerid)); SetPlayerName(playerid, dini_Get(file, "OldName")); format(file, sizeof(file), "users/%s.ini", RPNU(playerid)); ShowDialog(playerid, 2); } if(!dini_Exists(file)) { ShowDialog(playerid, 1); return 1; } else { ShowDialog(playerid, 2); } return 1; } |
Quote:
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerLoggedIn(playerid)) { if(g_bIsRobbiz[playerid]) { DisablePlayerCheckpoint(playerid); DestroyObject(g_robbizBag[playerid]); g_apprehendedCash[playerid] = 0; g_bIsRobbiz[playerid] = false; new copMessage[64]; format(copMessage, sizeof(copMessage), "** %s has been hospitalized and failed the business robbery.", RPN(playerid)); SendCopMessage(COLOR_BLUE, copMessage); } |