Quantcast
Viewing all articles
Browse latest Browse all 595

[Tool/Web/Other] Simple Tramp system

Hello friends!
I have a very simple system of homeless, well we start here is a video of the installation and how serious just tell them that almost no English and the video is in Spanish

https://www.youtube.com/watch?v=D_pRmQVfHkY

Quote:

//Define the colors of the texts in their define
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
Quote:

Bagabundo in public OnFilterScriptInit () I will put it in a map FS as it is the GM of Oz
public OnFilterScriptInit()
{
CreateActor(137, 2554.115234, -1508.916870, 24.039062, 93.023132);
return 1;
}
Quote:

Textlabel/Donar in search with CTRL + F
public OnGameModeInit()
{
CreateDynamic3DTextLabel("{0066FF}¿Quieres donar al vagabundo?\n {FFFFFF}Para donar utiliza{0066FF} /donar",0x0079C9FF,2553.4146,-1508.8578,24.0391,15.0,INVALID_PLAYER_ID,INVALID_V EHICLE_ID, 1, -1,-1,-1, 100.0);
return 1;
}
Quote:

//Comando aqui se dirigen a Ctrl+F y buscan CMD: o simplemente lo pegan en la parte de abajo
CMD:donar(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2553.4146,-1508.8578,24.0391)) //punto donde estara "/save"
{
new string[128];
format(string, sizeof(string),"Tramp says: Thank you man!.",NombreJugador(playerid)); //What the tramp will say and that everyone can see
ProxDetector(20.0, playerid, string, COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,CO LOR_FADE5); //Color in which will be the letters of what the Tramp says
if(PlayerInfo[playerid][jDinero] < 10) return SendClientMessage(playerid,-1,""You don't have enough money ($10)"); Tells you if he fits you to give the Tramp
QuitarDinero(playerid, 10); //It takes away that money
SCM(playerid, -1, "Le diste al vagabundo {00F000}10$"); //You get a message ((just put the command))
}
return 1;
}
To use this system occupy streamer and Zcmd

This contribution is already in Spanish, Russian and English, thanks

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>