i want to convert this but
#1

i make this code for samp 0.2 but i love samp 0.3 it is best ! this is a part of my pwn file !
help me how can i run it on samp 3 !

public OnPlayerSpawn(playerid)
{
switch (gTeam[playerid])
{
case TEAM_SGT.DICK:
{
SendClientMessage(playerid,COLOR_RED,"<> КгЗг ЗЪЦЗн гЗКСнЯУ СЗ ИЯФнП Ие Сдђ ХжСКн / ЮСгТ <>");
SendClientMessage(playerid,COLOR_RED,"<> Ие ЗЪЦЗн гЗКСнЯУ ЗМЗТе дПенП Яе Ие гНб КЪннд ФПе ИСждП <>");
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerPos(playerid,2297.1064,2452.0115,10.8203) ;
GivePlayerWeapon(playerid,16,500);
GivePlayerWeapon(playerid,8,500);
GivePlayerWeapon(playerid,23,500);
GivePlayerWeapon(playerid,25,500);
GivePlayerWeapon(playerid,30,500);
GivePlayerWeapon(playerid,36,500);
GivePlayerWeapon(playerid,34,500);
GivePlayerWeapon(playerid,46,500);
GivePlayerWeapon(playerid,39,500);
GivePlayerWeapon(playerid,40,500);
SetPlayerInterior(playerid,0);
}
case TEAM_FBI:
{
SendClientMessage(playerid,COLOR_RED,"<> КгЗг ЗЪЦЗн гЗКСнЯУ СЗ ИЯФнП Ие Сдђ ХжСКн / ЮСгТ <>)");
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
SendClientMessage(playerid,COLOR_RED,"<> Ие ЗЪЦЗн гЗКСнЯУ ЗМЗТе дПенП Яе Ие гНб КЪннд ФПе ИСждП <>");
SetPlayerPos(playerid,985.2822,1745.6191,8.6484);
GivePlayerWeapon(playerid,18,1500);
GivePlayerWeapon(playerid,23,500);
GivePlayerWeapon(playerid,9,500);
GivePlayerWeapon(playerid,27,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,35,800);
GivePlayerWeapon(playerid,46,500);
GivePlayerWeapon(playerid,39,500);
GivePlayerWeapon(playerid,40,500);
SetPlayerInterior(playerid,0);
}
case TEAM_NEO:
{
SetPlayerColor(playerid,COLOR_RED);
GivePlayerWeapon(playerid,16,500);
GivePlayerWeapon(playerid,8,500);
GivePlayerWeapon(playerid,23,500);
GivePlayerWeapon(playerid,25,500);
GivePlayerWeapon(playerid,30,500);
GivePlayerWeapon(playerid,36,500);
GivePlayerWeapon(playerid,34,500);
GivePlayerWeapon(playerid,46,500);
GivePlayerWeapon(playerid,39,500);
GivePlayerWeapon(playerid,40,500);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,1.4846,24.8307,1199.593;
SetPlayerCheckpoint(playerid,1.7256,33.8379,1199.5 938,4);
Spawned[playerid] = 1;
}
case TEAM_MORPHEUS:
{
SetPlayerColor(playerid,COLOR_PINK);
GivePlayerWeapon(playerid,18,1500);
GivePlayerWeapon(playerid,23,500);
GivePlayerWeapon(playerid,9,500);
GivePlayerWeapon(playerid,27,500);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,46,500);
GivePlayerWeapon(playerid,35,800);
GivePlayerWeapon(playerid,34,500);
GivePlayerWeapon(playerid,39,500);
GivePlayerWeapon(playerid,40,500);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid,1.4846,24.8307,1199.593;
SetPlayerCheckpoint(playerid,1.7256,33.8379,1199.5 938,4);
Spawned[playerid] = 1;
}
}
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );

} else {
if(gTeam[killerid] != gTeam[playerid]) {

SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1 );
GivePlayerMoney(killerid, 1000);

}
else {

new warning[256];
format(warning, sizeof(warning), "гжЗЩИ ИЗФнП ! Кнг ФгЗ ПС НЗб ЭСж ЃЗФн ЗУК");
SendClientMessage(killerid, 0xFFFF00AA, warning);
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid, -1000);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
if(gTeam[playerid] == TEAM_NEO || gTeam[playerid] == TEAM_MORPHEUS)
{
if(Spawned[playerid] == 1)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-606.0476,2681.9260,73.013;
Spawned[playerid] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"Ие УгК ЪбЗгК КЪннд ФПе ИЪПн ИСж КЗ нЗТн СЗ Ие ЗКгЗг ИСУЗдн");
SetPlayerCheckpoint(playerid,1905.3484,1507.3481,1 3.9498,;
}
else
{
GameTextForAll("~r~Matrix/~p~Team ~n~~w~Have Won",10,1);
SetTimer("End",5000,0);
}
}
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
new Float:X,Float:Y,Float:Z;

//------------------------------------------- commands
if(strcmp("/want", cmdtext, true) == 0) {
SendClientMessage(playerid, 0xFFFF00AA, "ЮЗИбнК еЗ ЪИЗСКдП ЗТ");
SendClientMessage(playerid, 0xAFAFAFAA, "Type: /credits ~ ИСЗн ПнПд дЗг УЗТдПе ИСдЗге");
SendClientMessage(playerid, 0xAFAFAFAA, "Type: /car ~ИСЗн ПнПд гЗФнд еЗн гжМжП ПС ИСдЗге");
SendClientMessage(playerid, 0xAFAFAFAA, "Type: /dolar ~ ИСЗн ПЗдУК ЯЗСеЗн ггЯд ИЗ ЃжбКЗд");
return 1;
}
if(strcmp("/credits", cmdtext, true) == 0) {
SendClientMessage(playerid, 0x33AA33AA, " < Знд ИУКе н дСг ЗЭТЗСн КжУШ Згнд ФЯСн УЗОКе ФПе ж ПС ЗОКнЗС ФгЗ ЮСЗС ђСЭКе ЗУК > ");
return 1;
}
if(strcmp("/dolar", cmdtext, true) == 0) {
SendClientMessage(playerid, 0xFFFF00AA, "ЮЗИбнК еЗ ЪИЗСКдП ЗТ ");
SendClientMessage(playerid, 0xAFAFAFAA, "/heal ~ ПС ЗТЗн 750 ПбЗС ФгЗ СЗ ПС гЗд гн ЯдП ");
SendClientMessage(playerid, 0xAFAFAFAA, "/armour ~ ПС ЗТЗн 1500 ПбЗС Ие ФгЗ ТСе гн ПеП ");
SendClientMessage(playerid, 0xAFAFAFAA, "/kill ~ ФгЗ СЗ ЗТ Инд гн ИСП ");
return 1;
}
if(strcmp("/kill", cmdtext, true) == 0) {
SetPlayerHealth(playerid, 0.0);
return 1;
}
if(strcmp("/heal", cmdtext, true) == 0) {
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -750);
SendClientMessage(playerid, 0xAA3333AA, "ФгЗ ПСгЗд ФПнП жбн ЗТ ЃжбКЗд 750 ПбЗС Яг ФПе ЗУК");
return 1;
}
if(strcmp("/armour", cmdtext, true) == 0) {
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, 0xAA3333AA, "ФгЗ ЗЯджд ТСе Зн УЗбг ПЗСнП жбн ЗТ ЃжбКЗд 1500 ПбЗС Яг ФП ");
return 1;
}

if (strcmp(cmdtext, "/car", true)==0){
SendClientMessage(playerid, 0xFFFF00AA, "----= ЮЗИбнК еЗн гжМжП =----");
SendClientMessage(playerid, 0xAFAFAFAA, "/jetpack ~ Ие ФгЗ МК ЃЯ гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/jet ~ Ие ФгЗ МК ЃСдПе гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/Heli ~ Ие ФгЗ еЗн ЯжЃКС ФЯЗСн гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/saheli ~ Ие ФгЗ гЗФнд Фд джСП гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/charkhbozorg ~ Ие ФгЗ гждУКС гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/nezami ~ Ие ФгЗ гЗФнд ТСен Мдђн гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/toofan ~ Ие ФгЗ гЗФнд Яже дгжСП гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/tank ~ Ие ФгЗ КЗдЯ гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/nafarbar ~ Ие ФгЗ дЭС ИС гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "/carsport ~ Ие ФгЗ гЗФнд гУЗнЮе Зн гн ПеП");
SendClientMessage(playerid, 0xAFAFAFAA, "");
return 1;}

if(strcmp(cmdtext, "/jetpack", true) == 0)
{
GetPlayerPos(playerid,X,Y,Z);
CreatePickup(370,3,X,Y,Z);
SendClientMessage(playerid,0xFF66FFAA,"ФгЗ ЗЯджд МК ЃЯ ПЗСнП");
return 1;
}

if(strcmp(cmdtext, "/jet", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(520,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xFF66FFAA,"ФгЗ ЗбЗд МК ЃСдПе ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/Heli", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(425,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд ебн ЯжЃКС ПЗСнП ");
return 1;
}
if(strcmp(cmdtext, "/saheli", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(568,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд гЗФнд Фд джСП ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/charkhbozorg", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(557,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд гЗФнд гждУКС ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/nezami", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(470,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ бЗд гЗФнд ТСен Мдђн ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/toofan", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(495,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ бЗд гЗФнд Яже джСП ПЗСнП");
return 1;
}

if(strcmp(cmdtext, "/tank", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(432,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд КЗдЯ ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/nafarbar", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(601,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд дЭС ИС ПЗСнП");
return 1;
}
if(strcmp(cmdtext, "/carsport", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(503,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"ФгЗ ЗбЗд гЗФнд гУЗИЮе Зн ПЗСнП");
return 1;
}

if (!strcmp(cmdtext,"/clearchat") && IsPlayerAdmin(playerid))
{
if (!IsPlayerAdmin(playerid))
SendClientMessage(playerid, 0xFF0000FF, "Знд Ъгб ЯСП КдеЗ ИСЗн УСжС ЗгЯЗд ЃРнС гн ИЗФП");
else
{
for (new j = 1; j <= 40; j++) SendClientMessageToAll(0, "\n");
SendClientMessageToAll(0xFFFF00FF,"МЪИе ЌК ЃЗЯ ФП");
for (new j = 1; j <= 9; j++) SendClientMessageToAll(0, "\n");
}
return true;
}
return 0;
}

Reply
#2

Recompile it with 0.3 includes.

use [pawn] tags next time
Reply
#3

my meams is this !

1 - i want to give my weapen to players in samp 2 i do this with :

GivePlayerWeapon(playerid,46,500);

but now in samp 3 I can't

-----

2 - i want to do some command for exmple give car i do this with :

if(strcmp(cmdtext, "/Heli", true) == 0)
{
new Float:X,Float:Y,Float:Z,car;
GetPlayerPos(playerid,X,Y,Z);
car = CreateVehicle(425,X,Y,Z,-1,-1,50000);
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid,0xAA3333AA,"helicopter" );
return 1;
}

but now in samp 3 I can't

---

3 - i want to take 1500 $ and give armor i do this in samp 2 with :

if(strcmp("/armour", cmdtext, true) == 0) {
SetPlayerArmour(playerid, 100.0);
GivePlayerMoney(playerid, -1500);
SendClientMessage(playerid, 0xAA3333AA, "now you have armor");
return 1;
}

but now in samp 3 I can't

--------------

4 - i give 750 $ and give full heal in samp 2 with :

if(strcmp("/heal", cmdtext, true) == 0) {
SetPlayerHealth(playerid, 100.0);
GivePlayerMoney(playerid, -750);
SendClientMessage(playerid, 0xAA3333AA, "you heal");
return 1;
}

but now in samp 3 I can't

My qustion is this how can i convert them to samp 3

help Me



Reply
#4

Have you done what ive said? Make sure #include <a_samp> is in the top of your script. What errors are you getting?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)