if(strcmp(cmd,"/stvo",true)==0)
{
if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
{
if(PlayerInfo[playerid][pMember] == "Fahrschulid" || PlayerInfo[playerid][pLeader] == "Fahrschulid")
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "BENUTZE: /stvo [id]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
SendClientMessage(giveplayerid,0xFFFFFFAA,"Dein Text");
SendClientMessage(giveplayerid,0xFFFFFFAA,"Dein Text");
SendClientMessage(giveplayerid,0xFFFFFFAA,"Dein Text");
SendClientMessage(giveplayerid,0xFFFFFFAA,"Dein Text");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist nicht in deiner nähe!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler ist Offline !");
return 1;
}
}
}
return 1;
}
/edit damn war einer schneller^^