Gate !
#1

How to set 2 players to open 1 gate here is code how to set I Carl Johnson and Tom Cruise to opening this gate ?

//-------------------------------RikiVila------------------------------------------------
if(strcmp(cmd,"/rikio",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,90.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja otvorivte kapijata!");
}
return 1;
}
if(strcmp(cmd,"/rikic",true)==0)
{
new Playername[24];
GetPlayerName(playerid, Playername, sizeof(Playername));
if(strcmp(Playername,"Tom_Cruise",true))
if(strcmp(Playername,"Име_Презиме",true))
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Nemate kluc od ova kapija!");
}
else
{
MoveObject(rikivilakapija, 1497.50000000,-699.70001221,96.50000000,3.00000000,0.00000000,0.0 0000000);
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Ja zatvorivte kapijata!");
}
return 1;
}
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=45235
Reply
#3

Not Working i search for Players dont for Organizations Mafia, for Player !! if(strcmp(Playername, "Carl_Johnson",true)) How to create for 2 players open 2 gate i and Tom Cruise to open this gate ?
Reply
#4

Code for idiots:
pawn Код:
if(strcmp(Playername, "Carl_Johnson",true)) OPEN IT
if(strcmp(Playername, "Tom_Cruise",true)) OPEN IT
Reply
#5

Dont working i have this and Tom Cruise opening Carl Johnson not :/
Reply
#6

ahem

pawn Код:
if(!strcmp(Playername, "Carl_Johnson",true))

//or
if(strcmp(Playername, "Carl_Johnson",true)==0)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)