Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/bizname", true) == 0)
- {
- if(IsPlayerConnected(playerid))
- {
- new bouse = PlayerInfo[playerid][pPbiskey];
- if (bouse == 255)
- {
- SendClientMessage(playerid, COLOR_GRAD2, "Ne posedujete biznis");
- return 1;
- }
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_WHITE, "Koristi: /bizname [Ime]");
- }
- if (bouse >= 100)
- {
- strmid(SBizzInfo[bouse-100][sbMessage], result, 0, 64, 255);
- format(string, sizeof(string), "Ime biznisa je postavljeno na: %s",SBizzInfo[bouse-100][sbMessage]);
- }
- else
- {
- strmid(BizzInfo[bouse][bMessage], result, 0, 64, 255);
- format(string, sizeof(string), "Ime biznisa je postavljeno na: %s",BizzInfo[bouse][bMessage]);
- }
- OnPropUpdate();
- SendClientMessage(playerid, COLOR_WHITE, string);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment