15.02.2014, 16:04
(
Последний раз редактировалось ACI; 15.02.2014 в 17:09.
)
How to make a phone system
with
San Andreas Telecom
Here is the include: https://sampforum.blast.hk/showthread.php?tid=494796
Short Introduction
Its just a powerful include with in-built functions and in-built system for calling, and more!.. This tutorial will be a short tutorial on understanding how does this include works. First, before reading this tutorial, please read the original thread of the include: https://sampforum.blast.hk/showthread.php?tid=494796 - this will make it MORE easy for you to understand this tutorial.
Deployment
Okay, lets start to create a telephone tower.. This will be a medium for calling..
pawn Код:
public OnGameModeInit()
{
CreateCommercialTower(1,1877.7667,-2545.0544,13.5469 + 8.0, 40.0, "Tower Name\nIn Range!"); // This will create a tower on LS airport.
return 1;
}
pawn Код:
main()
{
printf("Total towers active: %i", GetTotalTowers());
}
pawn Код:
#define ASI_STC_INBUILT
CMD:call(playerid, params[])
{
new ID;
if(!sscanf(params, "r", ID))
{
if(IsPlayerInRangeOfAnyTower(playerid))
{
SendClientMessage(playerid, -1, "You have been connected! Say 'Hello'!");
CallPlayerForPlayer(playerid, ID);
}
else SendClientMessage(playerid, -1, "You need to be near a tower...");
}
else SendClientMessage(playerid, -1, "USAGE: /call (target)");
return 1;
}
Enjoy