10.10.2011, 00:03
pawn Код:
// This 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");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/294", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 294);
return 1;
}
if(strcmp(cmdtext, "/250", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 250);
return 1;
}
if(strcmp(cmdtext, "/249", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 249);
return 1;
}
if(strcmp(cmdtext, "/248", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 248);
return 1;
}
if(strcmp(cmdtext, "/247", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 247);
return 1;
}
if(strcmp(cmdtext, "/246", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 246);
return 1;
}
if(strcmp(cmdtext, "/245", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 245);
return 1;
}
if(strcmp(cmdtext, "/244", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 244);
return 1;
}
if(strcmp(cmdtext, "/243", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 243);
return 1;
}
if(strcmp(cmdtext, "/242", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 242);
return 1;
}
if(strcmp(cmdtext, "/241", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 241);
return 1;
}
if(strcmp(cmdtext, "/240", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 240);
return 1;
}
if(strcmp(cmdtext, "/254", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 254);
return 1;
}
if(strcmp(cmdtext, "/259", true) == 0)
{
SendClientMessage(playerid,0x80FF00AA,"Voзe pegou o disfarзe");
SetPlayerSkin(playerid, 259);
return 1;
}
if(strcmp(cmdtext, "/Disfarзe", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,1507.8744,-1714.6392,14.0469))
{
SendClientMessage(playerid,0xFF0000AA,"Roupas:");
SendClientMessage(playerid,0xFF0000AA,"/259 R$100,00,/254 R$100,00,/240 R$100,00,");
SendClientMessage(playerid,0xFF0000AA,"/241 R$100,00,/242 R$100,00,/243 R$100,00");
SendClientMessage(playerid,0xFF0000AA,"/244 R$100,00,/245 R$100,00,/246 R$100,00");
SendClientMessage(playerid,0xFF0000AA,"/247 R$100,00,/248 R$100,00,/249 R$100,00,/250 R$100,00,Skin hitman /294");
SendClientMessage(playerid,0xFF0000AA,"Quer saber qual skin usar??Procure os ids em:https://sampwiki.blast.hk/wiki/Skins:All");
return 1;
}
return 1;
}
return 0;
}
#endif
\/