Szerző Téma: SZERVER HIBA :( FONTOS!!!  (Megtekintve 814 alkalommal)

SZERVER HIBA :( FONTOS!!!
« Dátum: 2011. november 01. - 19:04:24 »
0 Show voters
Hello all!
Nos nem vagyok nagy szkripter és nem tudom mi lehet a hiba
[pawn]C:\\Users\\Ádám\\Desktop\\New Server\\gamemodes\\Driftv2.pwn(731) : error 035: argument type mismatch (argument 2)
C:\\Users\\Ádám\\Desktop\\New Server\\gamemodes\\Driftv2.pwn(732) : error 017: undefined symbol \"Kills\"
C:\\Users\\Ádám\\Desktop\\New Server\\gamemodes\\Driftv2.pwn(753) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664           Copyright © 1997-2006, ITB CompuPhase
3 Errors.[/pawn]
És a mod.
[pawn]#include <a_samp>
#pragma tabsize 0
#define SPECIAL_ACTION_PISSING 68
new Count = 5;
new CountText[5][5] ={
\"~r~1\",
\"~r~2\",
\"~r~3\",
\"~b~4\",
\"~b~5\"
};
forward NitroReset();
forward CountDown();
main()
{
print(\"\\n----------------------------------\");
print(\" Drift Mod v2  \");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"Official Drift 24/7\");
UsePlayerPedAnims();
SetTimer(\"NitroReset\", 1500, 1);
AddPlayerClass(1,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(7,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(12,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(13,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(19,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(21,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(23,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(28,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(29,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(34,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(41,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(44,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(46,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(47,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(49,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(55,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(59,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(60,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(56,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(67,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(73,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(78,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(87,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(85,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(93,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(100,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(102,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(104,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(106,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(107,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(108,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(113,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(114,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(115,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(116,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(122,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(123,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(126,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(133,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(134,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(152,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(174,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(175,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(176,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(177,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(180,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(181,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(184,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(185,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(188,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(191,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(192,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(193,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(194,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(195,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(206,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(209,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(217,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(237,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(241,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(250,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(255,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(265,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(271,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(270,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(285,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(291,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(292,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(293,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(294,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(296,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(297,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(298,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(299,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(264,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
    AddStaticVehicle(562,-2393.5720,-569.6004,131.7755,260.8946,12,15);
    AddStaticVehicle(562,-2375.3428,-584.9229,131.7719,197.1899,12,15);
    AddStaticVehicle(562,-2373.3203,-597.9933,131.7737,157.0784,12,15);
    AddStaticVehicle(562,-2379.4275,-605.4179,131.7747,122.0522,12,15);
    AddStaticVehicle(562,-2421.3772,-633.0546,132.4667,308.6672,12,15);
    AddStaticVehicle(562,-2423.7639,-629.4011,132.4830,310.9774,12,15);
    AddStaticVehicle(562,-2427.5767,-626.2247,132.4773,305.7086,12,15);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0); // Wave
    SetPlayerCameraPos(playerid, 1024.4758,-2160.1909,39.8466);
SetPlayerCameraLookAt(playerid, 1018.5209,-2160.5066,38.5108);
SetPlayerPos(playerid, 1009.5659,-2161.0220,36.4699);
SetPlayerFacingAngle(playerid, 273.9439);
SetPlayerInterior(playerid, 0);
return 1;
}
public NitroReset()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i)))
   {
              new vehicle = GetPlayerVehicleID(i);
                AddVehicleComponent(vehicle, 1010);
   }
}
}
IsPlayerInInvalidNosVehicle(playerid,vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 29
    new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
581,523,462,521,463,522,461,448,468,586,
509,481,510,472,473,493,595,484,430,453,
452,446,454,590,569,537,538,570,449
    };
    vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid,vehicleid))
    {
   for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
   {
       if(GetVehicleModel(vehicleid) == InvalidNosVehicles)

       {


           return true;


       }


   }


    }


    return false;


}


public OnPlayerConnect(playerid)


{


    GivePlayerMoney(playerid, 0);


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:{ffffff}%s has connected to the server.\", pName);


    SendClientMessageToAll(0x33AA33AA,string);


    SendClientMessage(playerid, 0x33CCFFAA, \"Use /help to view all commands\");


return 1;


}


public OnPlayerDisconnect(playerid, reason)


{


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:{ffffff}%s has left the server.\", pName);


    SendClientMessageToAll(0xA52A2AAA,string);


      return 1;


}


public CountDown(){


    if (Count > 0){


    GameTextForAll( CountText[Count-1], 2500, 3);


    Count--;


    SetTimer(\"Visszaszámlálás\", 1000, 0);


    }


    else{


    GameTextForAll(\"~g~Go Go Go!!!\", 2500, 3);


    Count = 5;


    }


    return 1;


}


public OnPlayerSpawn(playerid)


{


    SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


    SetPlayerHealth(playerid,9000.0);


    SendClientMessage(playerid, 0x33AA33AA, \"You are spawned!\");


return 1;


}


public OnPlayerDeath(playerid, killerid, reason)


{


    GameTextForPlayer(playerid,\"~w~HA HA! You DEAD\",1000,1);


    return 1;


}


public OnPlayerCommandText(playerid, cmdtext[])


{


    if (strcmp(\"/help\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /cmd=====================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/kill /beer /ciggy /lock /unlock /sprunk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/wine /anims /fr /teles /parachute\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/credits /flip /count\");


        SendClientMessage(playerid, 0x33AA33AA, \"============================================\");


   return 1;


}


if (strcmp(cmdtext, \"/count\", true)==0)


{


if(Count >= 5)


    {


    SendClientMessageToAll(0x33AA33AA, \"Countdown has begun!\");


    CountDown();


       return 1;


       }


       else


    {


    SendClientMessage(playerid, 0xAA3333AA, \"The countdown has been going!\");


    return 1;


       }


}


if (strcmp(\"/flip\", cmdtext, true, 10) == 0) {


   if (IsPlayerInAnyVehicle(playerid)) {


   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;   GetPlayerPos(playerid, X, Y, Z);    VehicleID = GetPlayerVehicleID(playerid);


   GetVehicleZAngle(VehicleID, Angle);


   SetVehiclePos(VehicleID, X, Y, Z);


   SetVehicleZAngle(VehicleID, Angle);


   SendClientMessage(playerid, 0x33AA33AA,\"Vehicle Flipped!\");


   } else {


   SendClientMessage(playerid,0xAA3333AA,\"Vehicle?!\");


    return 1;


}}


if (strcmp(\"/anims\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /anims===========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/lay /robman /masturb /handsup /wave /waterjump /eat\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/taichi /cower /sitdown /finger /boxing /talk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/slapass /roll /pee /phone /dances /stopanim\");


        SendClientMessage(playerid, 0x33AA33AA, \"====================================================\");


   return 1;


}


if (strcmp(\"/credits\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /credits==========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Animations - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Teleports - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Gamemode - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Stuff - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Drift Points Counter - BlockDoriftar\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


if (strcmp(\"/teles\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /teles============================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/spawn /drift1 /drift2 /drift3 /drift4 /drift5 /drift6\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/drift7 /drift8 /drift9 /tune /tune2\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


    if(strcmp(cmdtext, \"/spawn\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-51.5733,-231.8918,6.7646);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift1\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-57.5438,-1414.3257,11.4271);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 291.0222);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1257.6019,-2027.8704,59.1490);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift3\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2717.1382,-1508.3368,29.9331);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 85.9511);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift4\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2806.3691,-1438.4415,39.7021);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 175.6523);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift5\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2499.1069,1272.4935,10.4722);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 2.2395);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift6\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2328.7517,1399.8760,42.4814);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 359.4778);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift7\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2259.6487,1963.1309,31.4394);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 274.0729);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift8\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-312.2921,1540.4182,75.2216);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift9\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-493.1131,1989.2092,59.8513);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 319.3545);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2721.7175,217.3232,4.1266);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1935.7684,236.3854,33.9708);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.3517);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


if (strcmp(\"/kill\", cmdtext, true, 10) == 0){


   SendClientMessage(playerid, 0xFFFF00FF, \"You can not kill yourself\");


   return 1;


}


if (strcmp(\"/camera\", cmdtext, true, 10) == 0){


        GivePlayerWeapon(playerid, 43, 70);


   return 1;


}


if (!strcmp(\"/fr\", cmdtext))


    {


        if(IsPlayerInAnyVehicle(playerid))


        {


        RepairVehicle(GetPlayerVehicleID(playerid));


        SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Repaired!\");


        }


        else SendClientMessage(playerid, 0xAA3333AA, \"Vehicle?!\");


        return 1;


    }


    if (strcmp(cmdtext, \"/beer\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);


        return 1;


}


if (strcmp(cmdtext, \"/wine\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );


       return 1;


}


if (strcmp(cmdtext, \"/sprunk\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_SPRUNK );


       return 1;


}


    if (strcmp(cmdtext, \"/ciggy\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);


        return 1;


}


{


    if (strcmp(cmdtext, \"/lay\", true)==0){


        ApplyAnimation(playerid,\"BEACH\", \"bather\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/robman\", true)==0){


        ApplyAnimation(playerid, \"SHOP\", \"ROB_Loop_Threat\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/masturb\", true)==0){


        ApplyAnimation(playerid,\"PAULNMAC\", \"wank_loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/handsup\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);


        return 1;


}


if (strcmp(cmdtext, \"/wave\", true)==0){


        ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/waterjump\", true)==0){


    ApplyAnimation(playerid,\"DAM_JUMP\",\"DAM_LAUNCH\",2,0,1,1,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/taichi\", true)==0){


    ApplyAnimation(playerid,\"PARK\",\"Tai_Chi_Loop\",4.0,1,0,0,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/cower\", true)==0){


    ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/sitdown\", true)==0){


    ApplyAnimation(playerid,\"INT_OFFICE\", \"OFF_Sit_Bored_Loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/finger\", true)==0){


    ApplyAnimation(playerid,\"ped\", \"fucku\", 4.1, 0, 1, 1, 1, 1 );


        return 1;


}


if (strcmp(cmdtext, \"/boxing\", true)==0){


    ApplyAnimation(playerid,\"GYMNASIUM\", \"GYMshadowbox\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/talk\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/slapass\", true)==0){


    ApplyAnimation(playerid, \"SWEET\", \"sweet_ass_slap\", 4.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/roll\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"Crouch_Roll_L\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/pee\", true)==0){


    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);


        return 1;


}


if (strcmp(cmdtext, \"/phone\", true)==0){


    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);


        return 1;


}


if (strcmp(cmdtext, \"/eat\", true)==0){


    ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/dance1\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);


       return 1;


}


if (strcmp(cmdtext, \"/dance2\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);


       return 1;


}


if (strcmp(cmdtext, \"/dance3\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);


       return 1;


}


if (strcmp(cmdtext, \"/dance4\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);


       return 1;


}


if (strcmp(cmdtext, \"/dances\", true) == 0)


{


        SendClientMessage(playerid, 0x33AA33AA, \"========Command /dances========\");


       SendClientMessage(playerid, 0xFFFFFFAA, \"/dance1 /dance2 /dance3 /dance4\");


       SendClientMessage(playerid, 0x33AA33AA, \"===============================\");


       return 1;


}


if (strcmp(cmdtext, \"/stopanim\", true) == 0){


       ClearAnimations(playerid);


       return 1;


}


new vehicleid = GetPlayerVehicleID(playerid);


if (strcmp(cmdtext, \"/lock\", true) == 0)


    {


   if(IsPlayerInAnyVehicle(playerid))


   {


   new Stat5 ;


   Stat5=GetPlayerState(playerid);


   if(Stat5!=PLAYER_STATE_DRIVER)


   {


   SendClientMessage(playerid,0xAA3333AA,\"Only the driver can lock the car!\");


   return 1;


   }


   new i;


   for(i=0;i<MAX_PLAYERS;i++)


   {


   if(i != playerid)


   {


   SetVehicleParamsForPlayer(vehicleid,i, 0, 1);


   }


   }


   SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Locked!\");


   }


   else


   {


   SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


    return 1;


}


    if (strcmp(cmdtext, \"/unlock\", true)==0)


{


   if(IsPlayerInAnyVehicle(playerid))


   {


      new Stat6 ;


      Stat6 = GetPlayerState(playerid);


      if(Stat6!=PLAYER_STATE_DRIVER)


      {


            SendClientMessage(playerid,0xAA3333AA,\"Only the driver can open the vehicle!\");


      return 1;


      }


      new i;


      for(i=0;i<MAX_PLAYERS;i++)


      {


         SetVehicleParamsForPlayer(vehicleid,i, 0, 0);


      }


      SendClientMessage(playerid, 0x33AA33AA, \"Vehicles Unlocked\");


   }


   else


   {


      SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


       return 1;


}


   if(strcmp(\"/stats\",cmdtext,true,10)==0)


      {


   if(IsPlayerConnected(playerid))


  {


   new string[256];


   new Float:pX,Float:pY,Float:pZ;


   GetPlayerPos(playerid,pX,pY,pZ);


   new pName[MAX_PLAYER_NAME];


   GetPlayerName(playerid, pName, sizeof(pName));


   SendClientMessage(playerid, \"Look at your status!!!\");


   format(string,256, \"Kills: [%d] Deaths: [%d] Money: [%d] \",Kills,Deaths,GetPlayerMoney(playerid));


   SendClientMessage(playerid,0xFFFFFFAA,string);


   }


   return 1;


      }


if(strcmp(cmdtext, \"/class\",true)    ==0)


{


   ForceClassSelection(playerid);


   SetPlayerHealth(playerid, 0.00);


   SendClientMessage(playerid, 0x33AA33AA,\"Select {F81414} Skins!!!\");


   return 1;


}


   if (strcmp(\"/cc\", cmdtext, true, 10) == 0)


   {


   if (IsPlayerInAnyVehicle(playerid)) {


   new rand = random(126)+0;


   new rand1 = random(126)+0;


   new iVehicleID = GetPlayerVehicleID(playerid);


   ChangeVehicleColor(iVehicleID,rand,rand1);


   } else { SendClientMessage(playerid,\"Error: Not in a vehicle!\");


   }


   return 1;


   }


if (strcmp(cmdtext, \"/rules\", true)==0)


{


ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"RULES\", \"NO KILL\\n NO CAR STOLING\\nNO CHEAT\\nJUST FOR HANDLING\\nKILL=BAN\\nSTILL THIS\", \"OK\", \"NO\");


    return 1;


}


if (strcmp(cmdtext, \"/t22\", true)==0)


         {


             SetPlayerTime(playerid,22,0);


             GameTextForPlayer(playerid,\"Time 22!\",5000,5);


             return 1;


         }


if (strcmp(cmdtext, \"/night\", true)==0)


         {


             SetPlayerTime(playerid,0,0);


             GameTextForPlayer(playerid,\"Night!\",5000,5);


             return 1;


         }


if (strcmp(cmdtext, \"/day\", true)==0)


         {


             SetPlayerTime(playerid,13,0);


             GameTextForPlayer(playerid,\"Day!\",5000,5);


             return 1;


         }


if (strcmp(\"/namesoff\", cmdtext, true) == 0)


{


       for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);


       GameTextForPlayer(playerid, \"~W~Nametags ~R~off\", 5000, 5);


       return 1;


}


if (strcmp(\"/nameson\", cmdtext, true) == 0)


{


       for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);


       GameTextForPlayer(playerid, \"~W~Nametags ~G~On\", 5000, 5);


       return 1;


}


if(strcmp(cmdtext, \"/jizzy\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2610.9797,1360.6927,6.7320);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2610.9797,1360.6927,6.7320);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2610.9797,1360.6927,6.7320);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


     


if(strcmp(cmdtext, \"/8track\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1400.3209,-230.2171,1050.6885);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1400.3209,-230.2171,1050.6885);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1400.3209,-230.2171,1050.6885);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/skate\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1879.3903,-1383.6498,13.2338);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1879.3903,-1383.6498,13.2338);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1879.3903,-1383.6498,13.2338);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/sfair\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1503.5986,-227.6376,13.8955);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1503.5986,-227.6376,13.8955);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1503.5986,-227.6376,13.8955);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/lsair\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2052.8855,-2627.3369,13.2944);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2052.8855,-2627.3369,13.2944);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2052.8855,-2627.3369,13.2944);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/grove\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2492.2573,-1667.7885,12.9239);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2492.2573,-1667.7885,12.9239);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2492.2573,-1667.7885,12.9239);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


   if(!strcmp(cmdtext, \"/me\", true, 3)) // 3 is the length of /me


       {


   if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, \"Usage: /me [some]\");


   new str[128];


   GetPlayerName(playerid, str, sizeof(str));


   format(str, sizeof(str), \"* %s %s\", str, cmdtext[4]);


   SendClientMessageToAll(0xFFFF00AA, str);


   return 1;


       }


return 0;


}


}


stock SetCameraBeforPlayer(playerid)


{


     SetCameraBehindPlayer(playerid);


     SetPlayerFacingAngle(playerid, GetPlayerFacingAngle(playerid)+180.0);


}[/pawn]

Koncz_Norbert

  • Vendég
SZERVER HIBA :( FONTOS!!!
« Válasz #1 Dátum: 2011. november 01. - 19:10:56 »
+1 Show voters
[pawn]
#include <a_samp>
#pragma tabsize 0
#define SPECIAL_ACTION_PISSING 68
new Count = 5;
new CountText[5][5] ={
\"~r~1\",
\"~r~2\",
\"~r~3\",
\"~b~4\",
\"~b~5\"
};
forward NitroReset();
forward CountDown();
main()
{
print(\"\\n----------------------------------\");
print(\" Drift Mod v2  \");
print(\"----------------------------------\\n\");
}
public OnGameModeInit()
{
SetGameModeText(\"Official Drift 24/7\");
UsePlayerPedAnims();
SetTimer(\"NitroReset\", 1500, 1);
AddPlayerClass(1,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(7,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(12,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(13,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(19,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(21,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(23,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(28,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(29,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(34,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(41,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(44,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(46,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(47,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(49,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(55,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(59,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(60,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(56,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(67,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(73,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(78,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(87,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(85,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(93,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(100,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(102,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(104,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(106,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(107,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(108,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(113,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(114,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(115,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(116,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(122,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(123,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(126,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(133,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(134,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(152,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(174,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(175,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(176,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(177,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(180,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(181,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(184,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(185,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(188,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(191,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(192,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(193,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(194,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(195,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(206,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(209,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(217,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(237,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(241,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(250,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(255,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(265,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(271,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(270,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(285,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(291,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(292,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(293,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(294,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(296,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(297,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(298,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(299,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
AddPlayerClass(264,-2382.0168,-582.0441,132.1172,125.2504,0,0,0,0,0,0); // Spawnz
    AddStaticVehicle(562,-2393.5720,-569.6004,131.7755,260.8946,12,15);
    AddStaticVehicle(562,-2375.3428,-584.9229,131.7719,197.1899,12,15);
    AddStaticVehicle(562,-2373.3203,-597.9933,131.7737,157.0784,12,15);
    AddStaticVehicle(562,-2379.4275,-605.4179,131.7747,122.0522,12,15);
    AddStaticVehicle(562,-2421.3772,-633.0546,132.4667,308.6672,12,15);
    AddStaticVehicle(562,-2423.7639,-629.4011,132.4830,310.9774,12,15);
    AddStaticVehicle(562,-2427.5767,-626.2247,132.4773,305.7086,12,15);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
    return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
    ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0); // Wave
    SetPlayerCameraPos(playerid, 1024.4758,-2160.1909,39.8466);
SetPlayerCameraLookAt(playerid, 1018.5209,-2160.5066,38.5108);
SetPlayerPos(playerid, 1009.5659,-2161.0220,36.4699);
SetPlayerFacingAngle(playerid, 273.9439);
SetPlayerInterior(playerid, 0);
return 1;
}
public NitroReset()
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
    if(!IsPlayerInInvalidNosVehicle(i,GetPlayerVehicleID(i)))
   {
              new vehicle = GetPlayerVehicleID(i);
                AddVehicleComponent(vehicle, 1010);
   }
}
}
IsPlayerInInvalidNosVehicle(playerid,vehicleid)
{
    #define MAX_INVALID_NOS_VEHICLES 29
    new InvalidNosVehicles[MAX_INVALID_NOS_VEHICLES] =
    {
581,523,462,521,463,522,461,448,468,586,
509,481,510,472,473,493,595,484,430,453,
452,446,454,590,569,537,538,570,449
    };
    vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInVehicle(playerid,vehicleid))
    {
   for(new i = 0; i < MAX_INVALID_NOS_VEHICLES; i++)
   {
       if(GetVehicleModel(vehicleid) == InvalidNosVehicles)

       {


           return true;


       }


   }


    }


    return false;


}


public OnPlayerConnect(playerid)


{


    GivePlayerMoney(playerid, 0);


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:{ffffff}%s has connected to the server.\", pName);


    SendClientMessageToAll(0x33AA33AA,string);


    SendClientMessage(playerid, 0x33CCFFAA, \"Use /help to view all commands\");


return 1;


}


public OnPlayerDisconnect(playerid, reason)


{


    new pName[30], string[128];


    GetPlayerName(playerid, pName, 30);


    format(string, 256, \"{ff0000}OFFICIAL SERVER:{ffffff}%s has left the server.\", pName);


    SendClientMessageToAll(0xA52A2AAA,string);


      return 1;


}


public CountDown(){


    if (Count > 0){


    GameTextForAll( CountText[Count-1], 2500, 3);


    Count--;


    SetTimer(\"Visszaszámlálás\", 1000, 0);


    }


    else{


    GameTextForAll(\"~g~Go Go Go!!!\", 2500, 3);


    Count = 5;


    }


    return 1;


}


public OnPlayerSpawn(playerid)


{


    SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


    SetPlayerHealth(playerid,9000.0);


    SendClientMessage(playerid, 0x33AA33AA, \"You are spawned!\");


return 1;


}


public OnPlayerDeath(playerid, killerid, reason)


{


    GameTextForPlayer(playerid,\"~w~HA HA! You DEAD\",1000,1);


    return 1;


}


public OnPlayerCommandText(playerid, cmdtext[])


{


    if (strcmp(\"/help\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /cmd=====================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/kill /beer /ciggy /lock /unlock /sprunk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/wine /anims /fr /teles /parachute\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/credits /flip /count\");


        SendClientMessage(playerid, 0x33AA33AA, \"============================================\");


   return 1;


}


if (strcmp(cmdtext, \"/count\", true)==0)


{


if(Count >= 5)


    {


    SendClientMessageToAll(0x33AA33AA, \"Countdown has begun!\");


    CountDown();


       return 1;


       }


       else


    {


    SendClientMessage(playerid, 0xAA3333AA, \"The countdown has been going!\");


    return 1;


       }


}


if (strcmp(\"/flip\", cmdtext, true, 10) == 0) {


   if (IsPlayerInAnyVehicle(playerid)) {


   new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;   GetPlayerPos(playerid, X, Y, Z);    VehicleID = GetPlayerVehicleID(playerid);


   GetVehicleZAngle(VehicleID, Angle);


   SetVehiclePos(VehicleID, X, Y, Z);


   SetVehicleZAngle(VehicleID, Angle);


   SendClientMessage(playerid, 0x33AA33AA,\"Vehicle Flipped!\");


   } else {


   SendClientMessage(playerid,0xAA3333AA,\"Vehicle?!\");


    return 1;


}}


if (strcmp(\"/anims\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /anims===========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/lay /robman /masturb /handsup /wave /waterjump /eat\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/taichi /cower /sitdown /finger /boxing /talk\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/slapass /roll /pee /phone /dances /stopanim\");


        SendClientMessage(playerid, 0x33AA33AA, \"====================================================\");


   return 1;


}


if (strcmp(\"/credits\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /credits==========================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Animations - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Teleports - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Gamemode - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Stuff - BlockDoriftar\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"Drift Points Counter - BlockDoriftar\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


if (strcmp(\"/teles\", cmdtext, true, 10) == 0){


        SendClientMessage(playerid, 0x33AA33AA, \"===========Command /teles============================\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/spawn /drift1 /drift2 /drift3 /drift4 /drift5 /drift6\");


        SendClientMessage(playerid, 0xFFFFFFAA, \"/drift7 /drift8 /drift9 /tune /tune2\");


        SendClientMessage(playerid, 0x33AA33AA, \"=====================================================\");


   return 1;


}


    if(strcmp(cmdtext, \"/spawn\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-51.5733,-231.8918,6.7646);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 310.2000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-51.5733,-231.8918,6.7646);


        SetPlayerFacingAngle(playerid, 310.2000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift1\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-57.5438,-1414.3257,11.4271);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 291.0222);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-57.5438,-1414.3257,11.4271);


        SetPlayerFacingAngle(playerid, 291.0222);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1257.6019,-2027.8704,59.1490);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 270.4951);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1257.6019,-2027.8704,59.1490);


        SetPlayerFacingAngle(playerid, 270.4951);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift3\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2717.1382,-1508.3368,29.9331);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 85.9511);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2717.1382,-1508.3368,29.9331);


        SetPlayerFacingAngle(playerid, 85.9511);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift4\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2806.3691,-1438.4415,39.7021);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 175.6523);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2806.3691,-1438.4415,39.7021);


        SetPlayerFacingAngle(playerid, 175.6523);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift5\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2499.1069,1272.4935,10.4722);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 2.2395);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2499.1069,1272.4935,10.4722);


        SetPlayerFacingAngle(playerid, 2.2395);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift6\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2328.7517,1399.8760,42.4814);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 359.4778);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2328.7517,1399.8760,42.4814);


        SetPlayerFacingAngle(playerid, 359.4778);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift7\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2259.6487,1963.1309,31.4394);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 274.0729);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2259.6487,1963.1309,31.4394);


        SetPlayerFacingAngle(playerid, 274.0729);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift8\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-312.2921,1540.4182,75.2216);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-312.2921,1540.4182,75.2216);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/drift9\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-493.1131,1989.2092,59.8513);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 319.3545);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-493.1131,1989.2092,59.8513);


        SetPlayerFacingAngle(playerid, 319.3545);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2721.7175,217.3232,4.1266);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0000);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2721.7175,217.3232,4.1266);


        SetPlayerFacingAngle(playerid, 90.0000);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


    if(strcmp(cmdtext, \"/tune2\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1935.7684,236.3854,33.9708);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 1.3517);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1935.7684,236.3854,33.9708);


        SetPlayerFacingAngle(playerid, 1.3517);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


    }


if (strcmp(\"/kill\", cmdtext, true, 10) == 0){


   SendClientMessage(playerid, 0xFFFF00FF, \"You can not kill yourself\");


   return 1;


}


if (strcmp(\"/camera\", cmdtext, true, 10) == 0){


        GivePlayerWeapon(playerid, 43, 70);


   return 1;


}


if (!strcmp(\"/fr\", cmdtext))


    {


        if(IsPlayerInAnyVehicle(playerid))


        {


        RepairVehicle(GetPlayerVehicleID(playerid));


        SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Repaired!\");


        }


        else SendClientMessage(playerid, 0xAA3333AA, \"Vehicle?!\");


        return 1;


    }


    if (strcmp(cmdtext, \"/beer\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER);


        return 1;


}


if (strcmp(cmdtext, \"/wine\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_WINE );


       return 1;


}


if (strcmp(cmdtext, \"/sprunk\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DRINK_SPRUNK );


       return 1;


}


    if (strcmp(cmdtext, \"/ciggy\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);


        return 1;


}


{


    if (strcmp(cmdtext, \"/lay\", true)==0){


        ApplyAnimation(playerid,\"BEACH\", \"bather\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/robman\", true)==0){


        ApplyAnimation(playerid, \"SHOP\", \"ROB_Loop_Threat\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/masturb\", true)==0){


        ApplyAnimation(playerid,\"PAULNMAC\", \"wank_loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/handsup\", true)==0){


        SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);


        return 1;


}


if (strcmp(cmdtext, \"/wave\", true)==0){


        ApplyAnimation(playerid, \"ON_LOOKERS\", \"wave_loop\", 4.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/waterjump\", true)==0){


    ApplyAnimation(playerid,\"DAM_JUMP\",\"DAM_LAUNCH\",2,0,1,1,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/taichi\", true)==0){


    ApplyAnimation(playerid,\"PARK\",\"Tai_Chi_Loop\",4.0,1,0,0,0,0);


        return 1;


}


if (strcmp(cmdtext, \"/cower\", true)==0){


    ApplyAnimation(playerid, \"ped\", \"cower\", 3.0, 1, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/sitdown\", true)==0){


    ApplyAnimation(playerid,\"INT_OFFICE\", \"OFF_Sit_Bored_Loop\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/finger\", true)==0){


    ApplyAnimation(playerid,\"ped\", \"fucku\", 4.1, 0, 1, 1, 1, 1 );


        return 1;


}


if (strcmp(cmdtext, \"/boxing\", true)==0){


    ApplyAnimation(playerid,\"GYMNASIUM\", \"GYMshadowbox\", 1.800001, 1, 0, 0, 1, 600);


        return 1;


}


if (strcmp(cmdtext, \"/talk\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"IDLE_CHAT\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/slapass\", true)==0){


    ApplyAnimation(playerid, \"SWEET\", \"sweet_ass_slap\", 4.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/roll\", true)==0){


    ApplyAnimation(playerid,\"PED\",\"Crouch_Roll_L\",4.1,0,1,1,1,1);


        return 1;


}


if (strcmp(cmdtext, \"/pee\", true)==0){


    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_PISSING);


        return 1;


}


if (strcmp(cmdtext, \"/phone\", true)==0){


    SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);


        return 1;


}


if (strcmp(cmdtext, \"/eat\", true)==0){


    ApplyAnimation(playerid, \"FOOD\", \"EAT_Burger\", 3.0, 0, 0, 0, 0, 0);


        return 1;


}


if (strcmp(cmdtext, \"/dance1\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);


       return 1;


}


if (strcmp(cmdtext, \"/dance2\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);


       return 1;


}


if (strcmp(cmdtext, \"/dance3\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);


       return 1;


}


if (strcmp(cmdtext, \"/dance4\", true) == 0){


       SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);


       return 1;


}


if (strcmp(cmdtext, \"/dances\", true) == 0)


{


        SendClientMessage(playerid, 0x33AA33AA, \"========Command /dances========\");


       SendClientMessage(playerid, 0xFFFFFFAA, \"/dance1 /dance2 /dance3 /dance4\");


       SendClientMessage(playerid, 0x33AA33AA, \"===============================\");


       return 1;


}


if (strcmp(cmdtext, \"/stopanim\", true) == 0){


       ClearAnimations(playerid);


       return 1;


}


new vehicleid = GetPlayerVehicleID(playerid);


if (strcmp(cmdtext, \"/lock\", true) == 0)


    {


   if(IsPlayerInAnyVehicle(playerid))


   {


   new Stat5 ;


   Stat5=GetPlayerState(playerid);


   if(Stat5!=PLAYER_STATE_DRIVER)


   {


   SendClientMessage(playerid,0xAA3333AA,\"Only the driver can lock the car!\");


   return 1;


   }


   new i;


   for(i=0;i<MAX_PLAYERS;i++)


   {


   if(i != playerid)


   {


   SetVehicleParamsForPlayer(vehicleid,i, 0, 1);


   }


   }


   SendClientMessage(playerid, 0x33AA33AA, \"Vehicle Locked!\");


   }


   else


   {


   SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


    return 1;


}


    if (strcmp(cmdtext, \"/unlock\", true)==0)


{


   if(IsPlayerInAnyVehicle(playerid))


   {


      new Stat6 ;


      Stat6 = GetPlayerState(playerid);


      if(Stat6!=PLAYER_STATE_DRIVER)


      {


            SendClientMessage(playerid,0xAA3333AA,\"Only the driver can open the vehicle!\");


      return 1;


      }


      new i;


      for(i=0;i<MAX_PLAYERS;i++)


      {


         SetVehicleParamsForPlayer(vehicleid,i, 0, 0);


      }


      SendClientMessage(playerid, 0x33AA33AA, \"Vehicles Unlocked\");


   }


   else


   {


      SendClientMessage(playerid, 0xAA3333AA, \"You do not have vehicles!\");


   }


       return 1;


}


/*


   if(strcmp(\"/stats\",cmdtext,true,10)==0)


      {


   if(IsPlayerConnected(playerid))


  {


   new string[256];


   new Float:pX,Float:pY,Float:pZ;


   GetPlayerPos(playerid,pX,pY,pZ);


   new pName[MAX_PLAYER_NAME];


   GetPlayerName(playerid, pName, sizeof(pName));


   SendClientMessage(playerid, -1, \"Look at your status!!!\");


   format(string,256, \"Kills: [%d] Deaths: [%d] Money: [%d] \",Kills,Deaths,GetPlayerMoney(playerid));


   SendClientMessage(playerid,0xFFFFFFAA,string);


   }


   return 1;


      }


*/


if(strcmp(cmdtext, \"/class\",true)    ==0)


{


   ForceClassSelection(playerid);


   SetPlayerHealth(playerid, 0.00);


   SendClientMessage(playerid, 0x33AA33AA,\"Select {F81414} Skins!!!\");


   return 1;


}


   if (strcmp(\"/cc\", cmdtext, true, 10) == 0)


   {


      if (IsPlayerInAnyVehicle(playerid))


      {


         new rand = random(126)+0;


         new rand1 = random(126)+0;


         new iVehicleID = GetPlayerVehicleID(playerid);


         ChangeVehicleColor(iVehicleID,rand,rand1);


      }


      else


      {


         SendClientMessage(playerid, -1, \"Error: Not in a vehicle!\");


      }


      return 1;


   }


if (strcmp(cmdtext, \"/rules\", true)==0)


{


ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, \"RULES\", \"NO KILL\\n NO CAR STOLING\\nNO CHEAT\\nJUST FOR HANDLING\\nKILL=BAN\\nSTILL THIS\", \"OK\", \"NO\");


    return 1;


}


if (strcmp(cmdtext, \"/t22\", true)==0)


         {


             SetPlayerTime(playerid,22,0);


             GameTextForPlayer(playerid,\"Time 22!\",5000,5);


             return 1;


         }


if (strcmp(cmdtext, \"/night\", true)==0)


         {


             SetPlayerTime(playerid,0,0);


             GameTextForPlayer(playerid,\"Night!\",5000,5);


             return 1;


         }


if (strcmp(cmdtext, \"/day\", true)==0)


         {


             SetPlayerTime(playerid,13,0);


             GameTextForPlayer(playerid,\"Day!\",5000,5);


             return 1;


         }


if (strcmp(\"/namesoff\", cmdtext, true) == 0)


{


       for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, false);


       GameTextForPlayer(playerid, \"~W~Nametags ~R~off\", 5000, 5);


       return 1;


}


if (strcmp(\"/nameson\", cmdtext, true) == 0)


{


       for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(playerid, i, true);


       GameTextForPlayer(playerid, \"~W~Nametags ~G~On\", 5000, 5);


       return 1;


}


if(strcmp(cmdtext, \"/jizzy\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-2610.9797,1360.6927,6.7320);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-2610.9797,1360.6927,6.7320);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-2610.9797,1360.6927,6.7320);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/8track\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1400.3209,-230.2171,1050.6885);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1400.3209,-230.2171,1050.6885);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1400.3209,-230.2171,1050.6885);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/skate\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),1879.3903,-1383.6498,13.2338);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,1879.3903,-1383.6498,13.2338);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,1879.3903,-1383.6498,13.2338);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/sfair\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),-1503.5986,-227.6376,13.8955);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,-1503.5986,-227.6376,13.8955);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,-1503.5986,-227.6376,13.8955);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/lsair\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2052.8855,-2627.3369,13.2944);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2052.8855,-2627.3369,13.2944);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2052.8855,-2627.3369,13.2944);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


if(strcmp(cmdtext, \"/grove\", true) == 0){


        if(IsPlayerInAnyVehicle(playerid) == 1) {


        SetPlayerInterior(playerid, 0);


        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {


        SetVehiclePos(GetPlayerVehicleID(playerid),2492.2573,-1667.7885,12.9239);


        SetVehicleZAngle(GetPlayerVehicleID(playerid), 207.1619);


        LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);


        } else {


        RemovePlayerFromVehicle(playerid);


        SetPlayerPos(playerid,2492.2573,-1667.7885,12.9239);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        }


        } else {


        SetPlayerPos(playerid,2492.2573,-1667.7885,12.9239);


        SetPlayerFacingAngle(playerid, 207.1619);


        SetCameraBehindPlayer(playerid);


        SetPlayerInterior(playerid, 0);


        }


        return 1;


      }


   if(!strcmp(cmdtext, \"/me\", true, 3)) // 3 is the length of /me


       {


   if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, \"Usage: /me [some]\");


   new str[128];


   GetPlayerName(playerid, str, sizeof(str));


   format(str, sizeof(str), \"* %s %s\", str, cmdtext[4]);


   SendClientMessageToAll(0xFFFF00AA, str);


   return 1;


       }


return 0;


}


}


stock SetCameraBeforPlayer(playerid)


{


     SetCameraBehindPlayer(playerid);


     SetPlayerFacingAngle(playerid, GetPlayerFacingAngle(playerid)+180.0);


}


[/pawn]


A \'/stats\' parancs hibás. Nincs \'Kills\', se \'Deaths\' variáció a módban.

SZERVER HIBA :( FONTOS!!!
« Válasz #2 Dátum: 2011. november 01. - 19:17:46 »
0 Show voters
Köszönöm szépen!
Ment a +!
Zárok.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal