Jump to content

Question

6 answers to this question

Recommended Posts

Posted

aratane comanda tune

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

[pawn]CMD:tune ( playerid , params [ ] )

{

new playerstate = GetPlayerState ( playerid ) ;

if ( playerstate == PLAYER_STATE_DRIVER )

{

    return ModCar ( playerid ) ;

}

else

{

  return SendClientMessage ( playerid , COLOR_RED , "{B3B3B3} Nu poti folosi /tune daca nu esti soferul" ) ;

}

}[/pawn]

Posted

CMD:tune(playerid,params[])
{
	if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
	{
		ModCar(playerid);
		return 1;
	}
	else return SendClientMessage(playerid, red, "ERROR: You must be the driver of a car before you start tunning a vehicle!");
}

dami stock-ul ModCar

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Posted

nu am stock decat -

[pawn]public ModCar ( playerid ) { // changed to switch method to reduce processor load on server

// new modelid = GetVehicleModel ( GetPlayerVehicleID ( playerid ) ) ; // this executes a fair amt of stuff , so running it once to populate variable  ( modelid ) , THEN checking variable , makes more sense

switch ( pmodelid [ playerid ] ) {

        case 562 , 565 , 559 , 561 , 560 , 575 , 534 , 567 , 536 , 535 , 576 , 411 , 579 , 602 , 496 , 518 , 527 , 589 , 597 , 419 ,

533 , 526 , 474 , 545 , 517 , 410 , 600 , 436 , 580 , 439 , 549 , 491 , 445 , 604 , 507 , 585 , 587 , 466 , 492 , 546 , 551 , 516 ,

426 , 547 , 405 , 409 , 550 , 566 , 540 , 421 , 529 , 431 , 438 , 437 , 420 , 525 , 552 , 416 , 433 , 427 , 490 , 528 ,

407 , 544 , 470 , 598 , 596 , 599 , 601 , 428 , 499 , 609 , 524 , 578 , 486 , 406 , 573 , 455 , 588 , 403 , 514 , 423 ,

414 , 443 , 515 , 456 , 422 , 482 , 530 , 418 , 572 , 413 , 440 , 543 , 583 , 478 , 554 , 402 , 542 , 603 , 475 , 568 , 504 , 457 ,

        483 , 508 , 429 , 541 , 415 , 480 , 434 , 506 , 451 , 555 , 477 , 400 , 404 , 489 , 479 , 442 , 458 , 467 , 558: {

    ShowMenuForPlayer ( TuningMenu , playerid ) ;

    TogglePlayerControllable ( playerid , 0 ) ;

return SendClientMessage ( playerid , COLOR_WHITE , " [ INFO ] Select an item and push the SPACEBAR to approve." ) ;

}

default: return SendClientMessage ( playerid , COLOR_RED , " [ Atentie ] Nu este permis de a modifica acest vehicul[/tune] " ) ;

}

return 1;

}[/pawn]

Posted

stock ModCar(playerid)
{
	switch(pmodelid[playerid])
	{
        case 562,565,559,561,560,575,534,567,536,535,576,411,579,602,496,518,527,589,597,419,
		533,526,474,545,517,410,600,436,580,439,549,491,445,604,507,585,587,466,492,546,551,516,
		426,547,405, 409,550,566,406,540,421,529,431,438,437,420,525,552,416,433,427,490,528,
		407,544,470,598,596,599,601,428,499,609,524,578,486,573,455,588,403,514,423,
		414,443,515,456,422,482,530,418,572,413,440,543,583,478,554,402,542,603,475,568,504,457,
        483,508,429,541,415,480,434,506,451,555,477,400,404,489,479,442,458,467,558:
		{
		    ShowMenuForPlayer ( TuningMenu , playerid ) ;
		    TogglePlayerControllable ( playerid , 0 ) ;
		}
		default: return SendClientMessage(playerid, red, "ERROR: You can't tune this vehicle!");
	}
	return 1;
}

spunemi daca merge

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

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.