/cmds /credits /forum /help /admins /team[1/2/3] /armourme /healme /spawnme /relog /hello (says hello to all) |
CMD:yourcommand(playerid,params[]) |
CMD:car(playerid,params[]) |
{ |
CMD:money(playerid,params[]) { |
CreateVehicle() |
CreateVehicle(playerid,411); |
CreateVehicle(playerid,411); |
SendClientMessage(playerid, 0xFFFFFF, "you have spawned a car"); |
return 1; } |
CMD:car(playerid,params[]) { CreateVehicle(playerid,411); SendClientMessage(playerid, 0xFFFFFF, "you have spawned a car"); return 1; } |
for Pwn : http://www.mediafire.com/?bhobdjl1db2who3 And AMX: http://www.mediafire.com/?afcnh11yrgel0rx |
>>>How To make command<<< 1-first you need to make cmd Quote: CMD:yourcommand(playerid,params[]) change 'yourcommand' to a command you want lets try 'car' Quote: CMD:car(playerid,params[]) 2-now dont forget the Quote: { here now : Quote: CMD:money(playerid,params[]) { 3-make the command info: Quote: CreateVehicle() dont forget to do this controls : Quote: CreateVehicle(playerid,411); now the Red number is the car id put any car id here are the ids : https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List ---- now the: Quote: CreateVehicle(playerid,411); dont forget that now here lets make a message : Quote: SendClientMessage(playerid, 0xFFFFFF, "you have spawned a car"); now dont forget the return1; Quote: return 1; } Finally here the all command Quote: CMD:car(playerid,params[]) { CreateVehicle(playerid,411); SendClientMessage(playerid, 0xFFFFFF, "you have spawned a car"); return 1; } |
CMD:car(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:f;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, f);
CreateVehicle(411, x, y, z, f, -1, -1, -1);
SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a car.");
return 1;
}