12.02.2009, 17:15
pawn Код:
#include <a_samp>
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000FF
public OnGameModeInit()
{
print("\n~~~~~~~~~~~~~~~~~~~~");
print("Movie Server By Nico");
print("~~~~~~~~~~~~~~~~~~~~\n");
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has joined Nico's Movie Server.", pName);
SendClientMessageToAll(0xAAAAAAAA, string);
SendClientMessage(playerid,COLOR_WHITE,"Welcome To Nico's Movie Server");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new pName[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Crashed)", pName);
case 1: format(string, sizeof(string), "%s Left Nico The Dickhad server. (Leaving)", pName);
case 2: format(string, sizeof(string), "%s has Left Nico The Dickhad server. (Kicked)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
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 OnPlayerPrivmsg(playerid, recieverid, text[])
{
SendClientMessage(playerid,COLOR_RED,"PM have sent!");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Cash", cmdtext, true, 5) == 0)
{
GivePlayerMoney(playerid,100000);
SendClientMessage(playerid,COLOR_RED,"Here Is Some Cash");
return 1;
}
return 1;
}