PHP (Web) > SA-MP Server
#1

Hello everyone,

i was asking if it was possible to create a connection between a PHP web page and a SA-MP Server.
I mean,

Is there a way to send a "command" trough sockets from PHP to the gamemode?
For example, if i want to change the player skin while he's in game but from PHP?
I could do this in MySQL, but this means persistent queries and that's a bad idea.

Any ideas?
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=355574
Reply
#3

Quote:
Originally Posted by Ryan_Bowe
Посмотреть сообщение
The only way this API gives to call a remote function is trough RCON...
This means i can't use remote functions in my gamemode, but only in filterscripts.
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=333934

You could also use SA:MP's native HTTP functions.
Reply
#5

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=333934

You could also use SA:MP's native HTTP functions.
Cool, that's what i was looking for.
I don't like HTTP functions, they're dangerous.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)