Jump to content

[FS]Simple Wheels


Sice15

Recommended Posts

Este un Sistem simplu pentru Wheels (roti)

                            Wheels

/offroad /shadow /twist /ahab /mega /rimshine /wires /classic

/import/grove /switch /cutter /dollar /trance /atomic /virtual /access

public OnPlayerCommandText(playerid, cmdtext[])
{

	if(strcmp(cmdtext,"/wheels",true)==0)
	{
		SendClientMessage(playerid, 0xFF9933AA,  " Tunning Roti:");
		SendClientMessage(playerid, 0xFFFFFFAA,  "_______________________________________________________________________");
		SendClientMessage(playerid, 0x00BFFFAA,  "/offroad /shadow /twist /ahab /mega /rimshine /wires /classic");
 		SendClientMessage(playerid, 0xFFFFFFAA,  "/import/grove /switch /cutter /dollar /trance /atomic /virtual /access");
		SendClientMessage(playerid, 0xFFFFFFAA,  "_______________________________________________________________________");
		return 1;
	}

	if(strcmp(cmdtext, "/hydra", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1087);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/offroad", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1025);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/shadow", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1073);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
 }
	if(strcmp(cmdtext, "/twist", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1074);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/rimshine", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1075);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/wires", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1076);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/classic", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1077);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/twist", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1078);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/cutter", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1079);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/switch", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1080);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/grove", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1081);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/import", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1082);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/dollar", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1083);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/trance", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1084);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
}
	if(strcmp(cmdtext, "/atomic", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1085);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
    }
	if(strcmp(cmdtext, "/ahab", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1096);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
    }
	if(strcmp(cmdtext, "/virtual", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1097);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!!");
 	}
	return 1;
    }
	if(strcmp(cmdtext, "/access", true) == 0)
	{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(IsPlayerInAnyVehicle(playerid))
	{
	AddVehicleComponent(vehicleid, 1098);
 	}else{
 	SendClientMessage(playerid,COLOR_RED,"Nu sunteti într-un vehicul!!");
	}
	return 1;
	}
	return 0;
}

<a href='http://www.yhcbux.com/?ref=sice'><img src='http://www.yhcbux.com/images/banner1.gif'></a>

Link to comment
Share on other sites

ai luat din SaS, uite dovada cum am eu in GM:

if(strcmp(cmdtext,"/wheels",true)==0)
	{
		SendClientMessage(playerid, 0xFF9933AA,  " Wheels:");
		SendClientMessage(playerid, 0xFFFFFFAA,  "__________________");
		SendClientMessage(playerid, 0x00BFFFAA,  "/offroadwheel /shadow /twist /ahab /mega /rimshine /wires /classic");
 		SendClientMessage(playerid, 0xFFFFFFAA,  "/import /grove /switch /cutter /dollar /trance /atomic /virtual /access");
		SendClientMessage(playerid, 0xFFFFFFAA,  "__________________");
		return 1;
	}

;) ... sunt asezate exact la fel, culorile la fel ... ;D

macar ai incercat :))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Content

    • By kerasseN
      Vreau sa ma invatati si pe mine cum pot sa fac ca atunci cand intra un jucator sa ii dea un mesaj
       
      %s Bine ai venit pe server.
       
      de fiecare data cand intra pe server sa ii afiseze acest mesaj
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.