Beiträge von VanS.

    Hmm .. wo kommen die her ??


    Das würde dann ja so aussehen:
    if(strcmp(cmdtext,"/fbian",true) == 0)
    {
    if(PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)
    {
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 415)
    {
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    Sirene[GetPlayerVehicleID(playerid)] = CreateObject(18646,x,y,z,0,0,0,100);
    AttachObjectToVehicle(Sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,0,0.60,0,0,0);
    }
    else
    {
    SendClientMessage(playerid,0xFFFFFFFF,"An dises auto kann keine sirene angebracht werden du benötigs eine Cheetah");
    }
    { // Doppelt gemoppelt -> Error^^
    else
    }
    SendClientMessage(playerid,0xFF0000FF,"Du bist nicht in der Fraktion: FBI" ); //0xFF0000FF ist Rot
    }
    if(strcmp(cmdtext,"/fbiaus",true) == 0)
    {
    DestroyObject(Sirene[GetPlayerVehicleID(playerid)]);
    }
    return 1;
    }