24.08.2016, 15:32
Quote:
COMMAND:creategroup(playerid, params[]) { new string[128]; if(PlayerInfo[playerid][power] >= 12 || PlayerInfo[playerid][helper]>=31337) { new iPlayer, iRank[64]; if( sscanf ( params, "us", iPlayer, iRank)) return SCP(playerid, "[PlayerID/PartOfName] [Group Name / No space !]"); if(!IsPlayerConnected(iPlayer)) return SendClientError(playerid, PLAYER_NOT_FOUND); new groupid = ReturnNextUnusedGroup(); new Float: X = 0.0, Float: Y = 0.0, Float: Z = 0.0; format(string, sizeof(string), "Groups/%d.ini", groupid); dini_Create(string); dini_IntSet(string,"ID",groupid); dini_Set(string, "Name", iRank); dini_Set(string, "Leader", PlayerName(iPlayer)); dini_FloatSet(string,"floatx",X); dini_FloatSet(string,"floaty",Y); dini_FloatSet(string,"floatz",Z); PlayerInfo[playerid][pgroupid] = groupid; return 1; } return 1; } |
[Group Name / No space !]