also ich wollte mal fragen wie ich von das hier als Fs kriegt (+ amx.) . habe es schon selber versucht aber leider immer fehlgeschlagen^^
if(strcmp(cmd, "/supportchat", true) == 0 || strcmp(cmd, "/sc", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Sie sind noch nicht eingelogt !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "USAGE: /sc (/supportchat) [playerid/PartOfName] [support text]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(HidePM[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " FEHLGESCHLAGEN !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(giveplayerid == playerid)
{
format(string, sizeof(string), "* %s mutters somthing.", sendername);
ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
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_GRAD2, "USAGE: /sc (/supportchat) [playerid/PartOfName] [support text]");
return 1;
}
format(string, sizeof(string), "%s[ID:%d] whispers: %s", sendername, playerid, (result));
SendClientMessage(giveplayerid, 0x009191FF, string);
format(string, sizeof(string), "Wisper sent to %s[ID:%d] : %s", giveplayer, giveplayerid ,(result));
SendClientMessage(playerid, 0x009191FF, string);
SBizzInfo[2][sbTill] += txtcost / 2;
ExtortionSBiz(2, txtcost / 2);
return 1;
}
}
else
{
format(string, sizeof(string), " Dieser spieler ist nicht connected.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
Ich hoffe ihr könnt mir schnell helfen
Danke im vorraus