Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

oleka de ajutor pentru gm meu


Question

Posted

Va rog ma ajutati la 2 3 comenzi care nu le stiu sa le fac va rog frum.Daca ati vrea sa ma ajutati sa fac comanda /v si acolo sa apara un meniu de vehicule si mai am 2 si gata aia cand apesi tasta 2 sa zbori si numarul skinului si comanda /givemoney.aia cu tasta 2 as vreao neaprat varog

2 answers to this question

Recommended Posts

Posted

	if(strcmp(cmd, "/givemoney", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givemoney [playerid/PartOfName] [money]");
				return 1;
			}
			new playa;
			new money;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			money = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 4)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			            ConsumingMoney[playa] = 1;
						GivePlayerMoney(playa, money);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");
			}
		}
		return 1;
	}

LA restu e prea mult de munca asta o gasesti in multe Gamemoduri.

Posted

Hai aia cu tasta 2...

//sub OnPlayerKeyStateChange

if( newkeys & KEY_SUBMISSION ) 
{
if( IsPlayerInAnyVehicle(playerid) ) SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 5.0);
}

Mare inginerie....

-Toate tutorialele postate intra aici sau puneti-le direct [url=http://www.sa-mp.ro/forum/index

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.