Help me
#5

this is my mod i want to do TDM mod but i dont know commands and things, guides dont help me because i am from israel and its hard to read it, i dont know what to do anymore, to quit?


PHP код:
is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" Blank Filterscript by your name here");
    print(
"--------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
#else
main()
{
    print(
"\n----------------------------------");
    print(
" Blank Gamemode by your name here");
    print(
"----------------------------------\n");
}
#endif
public OnGameModeInit()
{
    
// Don't use these lines if it's a filterscript
    
SetGameModeText("Blank Script");
    
AddPlayerClass(01958.37831343.157215.3746269.1425000000);
    return 
1;
}
public 
OnGameModeExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
    return 
1;
}
public 
OnVehicleSpawn(vehicleid)
{
    return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
    return 
1;
}
public 
OnPlayerText(playeridtext[])
{
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/mycommand"cmdtexttrue10) == 0)
    {
        
// Do something here
        
return 1;
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    return 
1;
}
public 
OnPlayerExitVehicle(playeridvehicleid)
{
    return 
1;
}
public 
OnPlayerStateChange(playeridnewstateoldstate)
{
    return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerLeaveCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerEnterRaceCheckpoint(playerid)
{
    return 
1;
}
public 
OnPlayerLeaveRaceCheckpoint(playerid)
{
    return 
1;
}
public 
OnRconCommand(cmd[])
{
    return 
1;
}
public 
OnPlayerRequestSpawn(playerid)
{
    return 
1;
}
public 
OnObjectMoved(objectid)
{
    return 
1;
}
public 
OnPlayerObjectMoved(playeridobjectid)
{
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    return 
1;
}
public 
OnVehicleMod(playeridvehicleidcomponentid)
{
    return 
1;
}
public 
OnVehiclePaintjob(playeridvehicleidpaintjobid)
{
    return 
1;
}
public 
OnVehicleRespray(playeridvehicleidcolor1color2)
{
    return 
1;
}
public 
OnPlayerSelectedMenuRow(playeridrow)
{
    return 
1;
}
public 
OnPlayerExitedMenu(playerid)
{
    return 
1;
}
public 
OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    return 
1;
}
public 
OnRconLoginAttempt(ip[], password[], success)
{
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    return 
1;
}
public 
OnPlayerStreamIn(playeridforplayerid)
{
    return 
1;
}
public 
OnPlayerStreamOut(playeridforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamIn(vehicleidforplayerid)
{
    return 
1;
}
public 
OnVehicleStreamOut(vehicleidforplayerid)
{
    return 
1;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    return 
1;
}
public 
OnPlayerClickPlayer(playeridclickedplayeridsource)
{
    return 
1;
 }
    {
        
SendClientMessage(playeridCOLOR_YELLOW"--------------------------------");
        
SendClientMessage(playeridCOLOR_GREEN"/MP5 - 1000$");
        
SendClientMessage(playeridCOLOR_GREEN"/SPAS12 - 3500$");
        
SendClientMessage(playeridCOLOR_GREEN"/M4 - 2000$");
        
SendClientMessage(playeridCOLOR_GREEN"/Armour - $500 ");
        
SendClientMessage(playeridCOLOR_YELLOW"--------------------------------");
        return 
1;
}
                if (
strcmp("/mp5"cmdtexttrue10) == 0)
    {
        if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid,0xFF0000AA"You don't have enough money! You Need 1,000$!");
        
SendClientMessage(playeridCOLOR_YELLOW"You have received an MP5.");
        
GivePlayerWeapon(playerid295000);
        
GivePlayerMoney(playerid, -1000);
        return 
1;
    }
        if (
strcmp("/M4"cmdtexttrue10) == 0)
    {
        if(
GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid,0xFF0000AA"You don't have enough money! You Need 2,000$!");
        
SendClientMessage(playeridCOLOR_YELLOW"You have received an M4.");
        
GivePlayerWeapon(playerid317500);
        
GivePlayerMoney(playerid, -2000);
        return 
1;
    }
        if (
strcmp("/Spas12"cmdtexttrue10) == 0)
    {
        if(
GetPlayerMoney(playerid) < 3500) return SendClientMessage(playerid,0xFF0000AA"You don't have enough money! You Need 3,500$!");
        
SendClientMessage(playeridCOLOR_YELLOW"You have received Spas-12. Have fun killing.");
        
GivePlayerWeapon(playerid177500);
        
GivePlayerMoney(playerid, -3500);
        return 
1;
    }
        if (
strcmp("/Armour"cmdtexttrue10) == 0)
    {
        if(
GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid,0xFF0000AA"You need more money! Get $500!");
        
SendClientMessage(playeridCOLOR_YELLOW"You have recieved a vest.");
        
SetPlayerArmour(playerid100);
        
GivePlayerMoney(playerid, -500);
        return 
1
Reply


Messages In This Thread
Help me - by MoTeL20 - 28.06.2011, 14:01
AW: Help me - by Blowfish - 28.06.2011, 14:04
Re: Help me - by MoTeL20 - 28.06.2011, 14:10
AW: Help me - by Blowfish - 28.06.2011, 14:11
Re: Help me - by MoTeL20 - 28.06.2011, 14:35
AW: Help me - by Blowfish - 28.06.2011, 14:42
Re: Help me - by MoTeL20 - 28.06.2011, 14:48

Forum Jump:


Users browsing this thread: 3 Guest(s)