akkor csak cseréld ki ezt:
CMD:setgoto ( playerid, params [ ] )
{
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 1 );
SendClientMessage ( playerid, 0x000000FF, \"Engedélyezted, hogy hozzád teleportálhassanak!\" );
} else {
SetPVarInt ( playerid, \"pGoto\", 0 );
SendClientMessage ( playerid, 0x000000FF, \"Letiltottad, hogy hozzád teleportálhassanak!\" );
}
return 1;
}
erre:
CMD:setgoto ( playerid, params [ ] )
{
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 1 );
SendClientMessage ( playerid, 0x000000FF, \"Engedélyezted, hogy hozzád teleportálhassanak!\" );
CMD:parancs ( playerid, params [ ] )
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 0 );
SendClientMessage ( playerid, 0x000000FF, \"Letiltottad, hogy hozzád teleportálhassanak!\" );
}
return 1;
}
remélem segítettem de csak gondolkodni kellene !::D
akkor csak cseréld ki ezt:
CMD:setgoto ( playerid, params [ ] )
{
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 1 );
SendClientMessage ( playerid, 0x000000FF, \"Engedélyezted, hogy hozzád teleportálhassanak!\" );
} else {
SetPVarInt ( playerid, \"pGoto\", 0 );
SendClientMessage ( playerid, 0x000000FF, \"Letiltottad, hogy hozzád teleportálhassanak!\" );
}
return 1;
}
erre:
CMD:setgoto ( playerid, params [ ] )
{
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 1 );
SendClientMessage ( playerid, 0x000000FF, \"Engedélyezted, hogy hozzád teleportálhassanak!\" );
CMD:parancs ( playerid, params [ ] )
if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) {
SetPVarInt ( playerid, \"pGoto\", 0 );
SendClientMessage ( playerid, 0x000000FF, \"Letiltottad, hogy hozzád teleportálhassanak!\" );
}
return 1;
}
remélem segítettem de csak gondolkodni kellene !::D
Te is jó szarul írtad le.
tess:
CMD:agoto(playerid) {
if(GetPVarInt(playerid, \"agoto\")) {
SetPVarInt(playerid, \"agoto\", 1);
}else{
SetPVarInt(playerid, \"agoto\", 0);
}
new str[128];
format(str, sizeof(str), \"Sikeresen %s a hozzád való teleportálást.\", GetPVarInt(playerid, \"agoto\")?(\"engedélyezted\"):(\"letíltottad\"));
SendClientMessage(playerid, -1, str);
return 1;
}
Tíltás sor meg:
if(!GetPVarInt(id, \"agoto\")) return SendClientMessage(playerid, -1, \"Hiba. A játékosnak le van tíltva a hozzá való teleportálás.\");