Hey Brotfische!!
dcmd_setprem(playerid, cmdtext[]){ new tmp[256],idx; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE,"USAGE: /setprem [ID]"); } else { if(!IsPlayerConnected(strval(tmp))) { SendClientMessage(playerid, COLOR_WHITE,"* This player is not active."); } else { new INI:File = INI_Open(UserPath(playerid)); INI_WriteInt(File, "Premium", 1); SendClientMessage(strval(tmp), COLOR_WHITE, "* %s (Admin) has give you Premium.", Player(playerid)); } } return 1;}
Warum kommt wenn ich /setprem ID mache der Server ab?? Bitte um Hilfe!!
MfG Andre