13.05.2012, 03:39
Add this check in your command.
pawn Код:
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "%s.ini", PlayerName(playerid));
if(dini_Exists(string)) // This will check if the dini exists. returns true if exists.
{
//
// Your code here
}
else
{
//Use your code here if no dini exists.
}