- 0
Problema comanda /accept live
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Spilter
Salut!Am o problema la News Reporter cand vreau sa fac live cu cineva il invit , ii apare /accept live dar nu merge, nu se intampla nimic!uitati comanda de la /live si /accept live :
if(strcmp(cmd, "/live", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { if(TalkingLive[playerid] != 255) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Live Conversation ended."); SendClientMessage(TalkingLive[playerid], COLOR_LIGHTBLUE, "* Live Conversation ended."); TogglePlayerControllable(playerid, 1); TogglePlayerControllable(TalkingLive[playerid], 1); TalkingLive[TalkingLive[playerid]] = 255; TalkingLive[playerid] = 255; return 1; } if(PlayerInfo[playerid][pNewsSkill] < 400) { SendClientMessage(playerid, COLOR_GREY, " Your News Reporter Skill is to low to talk Live with people !"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /live [playerid/PartOfName]"); return 1; } //giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if (IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(5.0, playerid, giveplayerid)) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Talk Live with yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You offered %s to have a Live Conversation.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s offered you to have a Live Conversation, type (/accept live) to accept.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); LiveOffer[giveplayerid] = playerid; } else { SendClientMessage(playerid, COLOR_GREY, " You are to far away from that player !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " Invalid ID/Name !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a News Reporter !"); } }//not connected return 1;0 answers to this question
Recommended Posts