10.11.2011, 15:29
Hey,
Could you help me with something ? I have started to use y_ini alot more then i used to, And currently using it on my RP Server how ever i want to find out if it is possible to create a command using it, here is the base:
Basically INI stuff would open the file and save the player name and the suggestion, but if it is possible like this:
Thats basically it so it would repeat for every suggestion, Is that possible?
Thanks
Could you help me with something ? I have started to use y_ini alot more then i used to, And currently using it on my RP Server how ever i want to find out if it is possible to create a command using it, here is the base:
pawn Код:
CMD:suggest(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessageEx(playerid,COLOR_GREY,"You cannot use that command");
else if(PlayerInfo[playerid][pLevel] > 3) return SendClientMessageEx(playerid,COLOR_GREY, "You need to be level 3");
else if(sscanf(params,"s", params)) return SendClientMessageEx(playerid,COLOR_WHITE,"Please Use /suggest <Feature>");
else
{
INI stuff
}
return 1;
}
Код:
[New Suggestion] Name: Suggests: [New Suggestion] Name: Suggests:
Thanks