- 0
Problema /clear
-
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
ToX1c
Salut am si eu o problema mare cu /clear cand un politist vrea sa dea /clear din locul de unde se da nu face nimic..nu zice nimic,nu ii scoate wantedul..
if(strcmp(cmd, "/clear", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] == 2 || PlayerInfo[playerid][pRank] >= 2) { if (!PlayerToPoint(3.0, playerid, 253.9216,69.4969,1003.6406)) { SendClientMessage(playerid, COLOR_GRAD2, "You are to not inside the Police Station!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /clear [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Clear yourself!"); return 1; } GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* I-ai sters recordurile si gradul de urmarire lui %s.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Ofiterul %s ti-a sters recordurile si gradul de urmarire.", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Ofiterul %s i-a sters recordurile si gradul de urmarire lui %s.",sendername, giveplayer); SendTeamMessage(2, 0x01FC7EFF, string); SetPlayerWantedLevel(giveplayerid, 0); WantedPoints[giveplayerid] = 0; WantedLevel[giveplayerid] = 0; ClearCrime(giveplayerid); if(gTeam[giveplayerid]==4) { gTeam[giveplayerid] = 3; SetPlayerToTeamColor(giveplayerid); } } } else { SendClientMessage(playerid, COLOR_GREY, "Invalid ID/Name!"); } } else { SendClientMessage(playerid, COLOR_GREY, "You are not an Cop / FBI / National Guard!"); } }//not connected return 1; }2.Ati vazut cand urcati pe star tower eu o parasuta si cand te duci la ea iti da parasuta , cum fac sa-mi dea si mie parasuta pe severul meu , la mine cand ma duc nu imi da nimic.
1 answer to this question
Recommended Posts